Public Methods | |
CTriggerThread (CExperiment *pExp, CTrigger *pTrig) | |
Construct a trigger thread object. | |
void | Start () |
Start trigger thread. | |
void | Stop () |
Protected Methods | |
virtual int | operator() (int argc, char **argv) |
Entry point for thread.. just calls MainLoop(), and returns 0. | |
virtual void | MainLoop () |
Private Attributes | |
CExperiment * | m_pExperiment |
Points to our experiment object. | |
CTrigger * | m_pTrigger |
Points to the trigger check object. | |
bool | m_Exiting |
True if asked to exit (stop called). | |
DAQThreadId | m_Id |
Our thread ID if running. | |
unsigned int | m_msHoldTime |
ms to hold the global mutex. | |
unsigned int | m_nTriggerdwell |
triggers betweeen time polls. |
Definition at line 374 of file CExperiment.cpp.
|
Construct a trigger thread object.
Definition at line 393 of file CExperiment.cpp. References nTriggerDwellTime, and nTriggersPerPoll. |
|
Main loop for trigger thread: The balancing act that's done in this loop is to keep trigger response latency low while not starving other threads such as the clock or interactive threads of execution.
Definition at line 464 of file CExperiment.cpp. References m_Exiting, m_msHoldTime, m_nTriggerdwell, m_pExperiment, MILISECOND, CExperiment::ReadEvent(), and SECOND. Referenced by operator()(). |
|
Entry point for thread.. just calls MainLoop(), and returns 0.
Definition at line 437 of file CExperiment.cpp. References MainLoop(). |
|
Start trigger thread.
Definition at line 402 of file CExperiment.cpp. References m_Exiting, and m_Id. Referenced by CExperiment::StartTrigger(). |
|
Schedule stop of trigger thread.
Definition at line 413 of file CExperiment.cpp. References m_Exiting, and m_Id. Referenced by CExperiment::StopTrigger(). |
|
True if asked to exit (stop called).
Definition at line 378 of file CExperiment.cpp. |
|
Our thread ID if running.
Definition at line 379 of file CExperiment.cpp. |
|
ms to hold the global mutex.
Definition at line 380 of file CExperiment.cpp. Referenced by MainLoop(). |
|
triggers betweeen time polls.
Definition at line 381 of file CExperiment.cpp. Referenced by MainLoop(). |
|
Points to our experiment object.
Definition at line 376 of file CExperiment.cpp. Referenced by MainLoop(). |
|
Points to the trigger check object.
Definition at line 377 of file CExperiment.cpp. |