Location:
cs_port.h
Link against: c32.lib
class CommTimer;
Static utility class for global timer handling designed for use by Serial Server plug-ins (CSYs).
Defined in CommTimer
:
Queue()
, Remove()
static IMPORT_C void Queue(TTimeIntervalMicroSeconds32 aTimeInMicroSeconds, TDeltaTimerEntry &aHandle);
Queue a timer on the global timer.
This class is only suitable for CSYs since it currently has no direct mechanism through which to release the Thread Local Storage and heap resources it allocates. In the case of CSYs these resources are managed separately by C32.
Note:
1. The Thread Local Storage of the calling thread must be available for use.
2. The first time this is called for a thread, a small amount of heap memory is required. If no memory is available, a "c32-fault" panic of type 7 is raised. Subsequent calls are not affected since they reuse this memory.
|
static IMPORT_C void Remove(TDeltaTimerEntry &aHandle);
Call cancel on the global timer
Note: This does not free the Thread Local Storage for the calling thread.
|