EPICS ARCHIVER V4
|
A ScanList keeps track of Scannable items. More...
#include <ScanList.h>
Public Member Functions | |
void | add (Scannable *item, double period) |
Add an item to the scan list. More... | |
bool | isDueAtAll () |
Does the scan list contain anyting? | |
const epicsTime & | getDueTime () |
When should scan() be called ? | |
void | remove (Scannable *item) |
Remove an item from the ScanList. | |
void | scan (const epicsTime &deadline) |
Scan all channels that are due at/before deadline. More... | |
void | dump () |
Dump. | |
A ScanList keeps track of Scannable items.
It does not spawn new threads, somebody else needs to check when the next scan is due and then invoke scan() in time.
The ScanList is self-protecting against concurrent access, based on the ConcurrentList used to maintain items to scan.
void ScanList::add | ( | Scannable * | item, |
double | period | ||
) |
Add an item to the scan list.
item | The item to scan |
period | The requested scan period in seconds. |
void ScanList::scan | ( | const epicsTime & | deadline | ) |
Scan all channels that are due at/before deadline.