Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ApplicationCore
Commits
9876a8b5
Commit
9876a8b5
authored
5 years ago
by
Jan H. K. Timm
Browse files
Options
Downloads
Patches
Plain Diff
DeviceModul
Ticket #79 - documentation for addRecoveryAccessor() and getRecoverySharedMutex()
parent
bf8c384b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/DeviceModule.h
+9
-0
9 additions, 0 deletions
include/DeviceModule.h
with
9 additions
and
0 deletions
include/DeviceModule.h
+
9
−
0
View file @
9876a8b5
...
...
@@ -184,7 +184,13 @@ namespace ChimeraTK {
ScalarOutput
<
int
>
deviceBecameFunctional
{
this
,
"deviceBecameFunctional"
,
""
,
""
};
// should be changed to data type void
/** Add a TransferElement to the list DeviceModule::writeRecoveryOpen. This list will be written during a recovery,
* after the constant accessors DeviceModule::writeAfterOpen are written. This is locked by a unique_lock.
* You can get a shared_lock with getRecoverySharedLock(). */
void
addRecoveryAccessor
(
boost
::
shared_ptr
<
TransferElement
>
recoveryAccessor
);
/** Returns a shared lock for the DeviceModule::recoverySharedMutex. This locks writing
* the list DeviceModule::writeRecoveryOpen, during a recovery.*/
boost
::
shared_lock
<
boost
::
shared_mutex
>
getRecoverySharedLock
();
protected
:
...
...
@@ -245,6 +251,8 @@ namespace ChimeraTK {
* to the device. */
std
::
list
<
boost
::
shared_ptr
<
TransferElement
>>
writeAfterOpen
;
/** List of TransferElements to be written after the device has been recovered.
* See function addRecoveryAccessor() for details.*/
std
::
list
<
boost
::
shared_ptr
<
TransferElement
>>
writeRecoveryOpen
;
Application
*
owner
{
nullptr
};
...
...
@@ -254,6 +262,7 @@ namespace ChimeraTK {
/* The list of initialisation handler callback functions */
std
::
list
<
std
::
function
<
void
(
DeviceModule
*
)
>>
initialisationHandlers
;
/** Mutex for writing the DeviceModule::writeRecoveryOpen.*/
boost
::
shared_mutex
recoverySharedMutex
;
friend
class
Application
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment