Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
WorkerManager Class Reference

A singleton manager that creates and manages workers that run on a processing node. More...

#include <WorkerManager.h>

Public Member Functions

 WorkerManager ()
 Create the WorkerManager.
 ~WorkerManager ()
 Destroy the WorkerManager.
void addWorker (Worker *worker)
 Adds a worker to the manager.
void removeWorker (Worker *worker)
 Removes a worker from the manager.
void abortWorkers ()
 Aborts all the worker threads.
void checkpointWorkers ()
 Causes all the worker threads to checkpoint (checkpointing is currently unimplemented)
void stopWorkers ()
 Stops all the worker threads (e.g. merges them with the master)

Static Public Member Functions

static WorkerManagergetInstance ()
 Get the global worker manager.

Detailed Description

A singleton manager that creates and manages workers that run on a processing node.

Constructor & Destructor Documentation

◆ WorkerManager()

lm::thread::WorkerManager::WorkerManager ( )

Create the WorkerManager.

◆ ~WorkerManager()

lm::thread::WorkerManager::~WorkerManager ( )

Destroy the WorkerManager.

Member Function Documentation

◆ abortWorkers()

void lm::thread::WorkerManager::abortWorkers ( )

Aborts all the worker threads.

◆ addWorker()

void lm::thread::WorkerManager::addWorker ( Worker * worker)

Adds a worker to the manager.

Parameters
workerWorker to add

◆ checkpointWorkers()

void lm::thread::WorkerManager::checkpointWorkers ( )

Causes all the worker threads to checkpoint (checkpointing is currently unimplemented)

◆ getInstance()

WorkerManager * lm::thread::WorkerManager::getInstance ( )
static

Get the global worker manager.

Returns
globalWorkerManager Global thread manager instance handle
Here is the caller graph for this function:

◆ removeWorker()

void lm::thread::WorkerManager::removeWorker ( Worker * worker)

Removes a worker from the manager.

Parameters
workerWorker handle for which to remove

◆ stopWorkers()

void lm::thread::WorkerManager::stopWorkers ( )

Stops all the worker threads (e.g. merges them with the master)


The documentation for this class was generated from the following files: