| Lattice Microbes 2.5
    This is for whole cell modeling | 
A base class wrapping pthreads. More...
#include <Thread.h>
| Public Member Functions | |
| Thread () | |
| Creates a pthread locking mechanism and initializes "Thread". | |
| virtual | ~Thread () | 
| Destory the Thread. | |
| virtual void | start () | 
| If no thread exists, creates a new thread and begins execution. | |
| virtual void | stop () | 
| Joins the thread with the parent waiting if necessary. | |
| virtual void | wake ()=0 | 
| Wakes a sleeping thead. | |
| virtual pthread_t | getId () | 
| Returns the pthread based id for the Thread. | |
| virtual void | setAffinity (int cpuNumber) | 
| Binds the thread to a CPU core. | |
| Protected Member Functions | |
| virtual int | run ()=0 | 
| Protected Attributes | |
| pthread_mutex_t | controlMutex | 
| pthread_t | threadId | 
| volatile bool | running | 
| int | cpuNumber | 
A base class wrapping pthreads.
| lm::thread::Thread::Thread | ( | ) | 
Creates a pthread locking mechanism and initializes "Thread".
| 
 | virtual | 
Destory the Thread.
| 
 | inlinevirtual | 
Returns the pthread based id for the Thread.
| 
 | protectedpure virtual | 
| 
 | virtual | 
Binds the thread to a CPU core.
| The | cpu core for which to bind the thread | 
| 
 | virtual | 
If no thread exists, creates a new thread and begins execution.
| 
 | virtual | 
Joins the thread with the parent waiting if necessary.
| 
 | pure virtual | 
Wakes a sleeping thead.
Implemented in lm::main::CheckpointSignaler, lm::main::LocalDataOutputWorker, lm::main::ReplicateRunner, lm::main::SignalHandler, and ReplicateRunner.
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected |