Lattice Microbes 2.5
This is for whole cell modeling
Loading...
Searching...
No Matches
lm::thread::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.

Here is the caller graph for this function:

◆ ~WorkerManager()

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

Destroy the WorkerManager.

Member Function Documentation

◆ abortWorkers()

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

Aborts all the worker threads.

Here is the caller graph for this function:

◆ addWorker()

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

Adds a worker to the manager.

Parameters
workerWorker to add
Here is the caller graph for this function:

◆ checkpointWorkers()

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

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

Here is the caller graph for this function:

◆ getInstance()

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

Get the global worker manager.

Returns
globalWorkerManager Global thread manager instance handle
Here is the call graph for this function:
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
Here is the caller graph for this function:

◆ stopWorkers()

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

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