EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
Public Member Functions | List of all members
ScanList Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

void ScanList::add ( Scannable item,
double  period 
)

Add an item to the scan list.

Parameters
itemThe item to scan
periodThe requested scan period in seconds.
void ScanList::scan ( const epicsTime &  deadline)

Scan all channels that are due at/before deadline.


The documentation for this class was generated from the following file: