An actual worker Thread that runs a simulation replicate.  
 More...
#include <Worker.h>
|  | 
|  | Worker () | 
|  | Creates thread and attaches it to the manager. 
 | 
| virtual | ~Worker () | 
|  | Removes thread from manager and deletes thread. 
 | 
| virtual void | abort () | 
|  | Set the aborted status for a thread and wakes thread. 
 | 
| virtual void | checkpoint () | 
|  | Checkpoint (currently unimplemented) 
 | 
|  | 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. 
 | 
An actual worker Thread that runs a simulation replicate. 
◆ Worker()
      
        
          | lm::thread::Worker::Worker | ( |  | ) |  | 
      
 
Creates thread and attaches it to the manager. 
 
 
◆ ~Worker()
  
  | 
        
          | lm::thread::Worker::~Worker | ( |  | ) |  |  | virtual | 
 
Removes thread from manager and deletes thread. 
 
 
◆ abort()
  
  | 
        
          | void lm::thread::Worker::abort | ( |  | ) |  |  | virtual | 
 
Set the aborted status for a thread and wakes thread. 
 
 
◆ checkpoint()
  
  | 
        
          | void lm::thread::Worker::checkpoint | ( |  | ) |  |  | virtual | 
 
Checkpoint (currently unimplemented) 
 
 
◆ aborted
  
  | 
        
          | volatile bool lm::thread::Worker::aborted |  | protected | 
 
 
The documentation for this class was generated from the following files:
- /data2/LM_zls_github/Lattice-Microbes/src/thread/Worker.h
- /data2/LM_zls_github/Lattice-Microbes/src/thread/Worker.cpp