LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::Async::Pausable Class Reference

Description

Utility class for pausable task queues.

+ Inheritance diagram for LLU::Async::Pausable:

#include <Utilities.h>

Public Member Functions

void checkPause ()
 This is the function worker threads will call to see if the work has been paused. More...
 
void pause () noexcept
 Signal to pause work. More...
 
void resume () noexcept
 Signal to resume work and notify waiting worker threads. More...
 

Member Function Documentation

◆ checkPause()

void LLU::Async::Pausable::checkPause ( )
inline

This is the function worker threads will call to see if the work has been paused.

If it has, they will wait on the condition variable.

◆ pause()

void LLU::Async::Pausable::pause ( )
inlinenoexcept

Signal to pause work.

◆ resume()

void LLU::Async::Pausable::resume ( )
inlinenoexcept

Signal to resume work and notify waiting worker threads.