A type of worker thread that checkpoints at a specified interval.  
 More...
#include <CheckpointSignaler.h>
|  | 
|  | CheckpointSignaler () | 
|  | Creates a new CheckpointSignaler Worker thread. 
 | 
| virtual | ~CheckpointSignaler () | 
| virtual void | startCheckpointing (time_t checkpointInterval) | 
|  | Tells the thread to start checkpointing every checkpointInterval seconds. 
 | 
| virtual void | stopCheckpointing () | 
|  | Tell the thread to stop checkpointing. 
 | 
| virtual void | wake () | 
|  | Wake the thread if inactive. 
 | 
|  | 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 pthread_t | getId () | 
|  | Returns the pthread based id for the Thread. 
 | 
| virtual void | setAffinity (int cpuNumber) | 
|  | Binds the thread to a CPU core. 
 | 
|  | 
| virtual int | run () | 
|  | A method to actually run a timestep while checkpointing every "checkpointInterval" time increment. 
 | 
| void | setNextCheckpointTime () | 
|  | Set the next checkpoint time for this thread. 
 | 
A type of worker thread that checkpoints at a specified interval. 
◆ CheckpointSignaler()
      
        
          | lm::main::CheckpointSignaler::CheckpointSignaler | ( |  | ) |  | 
      
 
 
◆ ~CheckpointSignaler()
  
  | 
        
          | lm::main::CheckpointSignaler::~CheckpointSignaler | ( |  | ) |  |  | virtual | 
 
 
◆ run()
  
  | 
        
          | int lm::main::CheckpointSignaler::run | ( |  | ) |  |  | protectedvirtual | 
 
A method to actually run a timestep while checkpointing every "checkpointInterval" time increment. 
- Returns
- 0 on success, -1 on failure 
Implements lm::thread::Thread.
 
 
◆ setNextCheckpointTime()
  
  | 
        
          | void lm::main::CheckpointSignaler::setNextCheckpointTime | ( |  | ) |  |  | protected | 
 
Set the next checkpoint time for this thread. 
 
 
◆ startCheckpointing()
  
  | 
        
          | void lm::main::CheckpointSignaler::startCheckpointing | ( | time_t | checkpointInterval | ) |  |  | virtual | 
 
Tells the thread to start checkpointing every checkpointInterval seconds. 
- Parameters
- 
  
    | checkpointInterval | How often in seconds to checkpoint |  
 
 
 
◆ stopCheckpointing()
  
  | 
        
          | void lm::main::CheckpointSignaler::stopCheckpointing | ( |  | ) |  |  | virtual | 
 
Tell the thread to stop checkpointing. 
 
 
◆ wake()
  
  | 
        
          | void lm::main::CheckpointSignaler::wake | ( |  | ) |  |  | virtual | 
 
 
The documentation for this class was generated from the following files: