Darwin Neuroevolution Framework
Public Member Functions | List of all members
pp::Controller Class Referenceabstract

An optional thread pool controller, which can be used to pause/resume/cancel the queued work items. More...

#include <thread_pool.h>

Inheritance diagram for pp::Controller:
darwin::Evolution

Public Member Functions

virtual void checkpoint ()=0
 Controller interface, called from the worker threads. More...
 

Detailed Description

An optional thread pool controller, which can be used to pause/resume/cancel the queued work items.

Note
The controller instance must outlive the associated thread pool
See also
ThreadPool

Member Function Documentation

◆ checkpoint()

virtual void pp::Controller::checkpoint ( )
pure virtual

Controller interface, called from the worker threads.

Implementations may:

  • Return (ie. allow worker threads to run)
  • Block (ie. pause worker threads)
  • Throw CanceledException

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