MantisBT - Hall D Online | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000400 | Hall D Online | Monitoring | public | 2014-04-08 10:44 | 2014-04-09 09:44 |
Reporter | davidl | ||||
Assigned To | davidl | ||||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Work by outside group for Hall D | No | ||||
Estimated man-weeks | |||||
Percentage complete | 0 | ||||
Actual man-weeks | 0 | ||||
Summary | 0000400: ROOTSpy: Add mutex lock mechanism for coordinating with user | ||||
Description | Synchronization issues can (and sometimes do) occur when the RootSpy thread accesses a histogram or tree at the same time as the main program. We need to provide a mechanism by which they can coordinate. This should be a pthread_mutex_t so that it can be coupled easily with the existing mutex used in GlueX sim-recon code. The DRootSpy constructor should take an optional pthread_mutex_t* that is initialized to NULL if not given. This will allow any existing code to still compile. A global variable: pthread_mutex_t *ROOTSPY_MUTEX = NULL; should be created and set to the value passed to the DRootSpy constructor if present. If not, then a mutex should be allocated and the pointer set to that. In either case the RootSpy thread should then use the pointer to lock and unlock the mutex for ROOT operations. Users that don't provide the mutex pointer can automatically make use of the global ROOTSPY_MUTEX if they wish to synchronize. Otherwise, they are taking their own chances, which is what the situation is now! | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2014-04-08 10:44 | davidl | New Issue | |||
2014-04-08 10:44 | davidl | Work by outside group for Hall D | => No | ||
2014-04-08 10:44 | davidl | Percentage complete | => 0 | ||
2014-04-08 10:44 | davidl | Actual man-weeks | => 0 | ||
2014-04-08 11:10 | davidl | Summary | RootSpy: Add mutex lock mechanism for coordinating with user => ROOTSpy: Add mutex lock mechanism for coordinating with user | ||
2014-04-09 09:44 | davidl | Note Added: 0000585 | |||
2014-04-09 09:44 | davidl | Status | new => resolved | ||
2014-04-09 09:44 | davidl | Resolution | open => fixed | ||
2014-04-09 09:44 | davidl | Assigned To | => davidl |
Notes | |||||
|
|||||
|
|