JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Public Member Functions
ThreadManager Class Reference

#include <ThreadManager.h>

Public Member Functions

 ThreadManager (size_t maxThreads)
 
 ThreadManager ()
 
size_t getMaxThreads () const
 
void setMaxThreads (size_t maxThreads)
 
size_t registerThreadUser (IThreadUser *user)
 
void unregisterThreadUser (size_t id)
 
void unregisterThreadUser (std::vector< size_t > &ids)
 
template<class queue_t >
void balanceQueue (std::vector< size_t > &writerIds, std::vector< size_t > &readerIds, queue_t &queue, bool &stop)
 

Constructor & Destructor Documentation

◆ ThreadManager() [1/2]

ThreadManager::ThreadManager ( size_t  maxThreads)

◆ ThreadManager() [2/2]

ThreadManager::ThreadManager ( )
default

Member Function Documentation

◆ balanceQueue()

template<class queue_t >
void ThreadManager::balanceQueue ( std::vector< size_t > &  writerIds,
std::vector< size_t > &  readerIds,
queue_t &  queue,
bool &  stop 
)
inline

◆ getMaxThreads()

size_t ThreadManager::getMaxThreads ( ) const
Here is the caller graph for this function:

◆ registerThreadUser()

size_t ThreadManager::registerThreadUser ( IThreadUser user)

◆ setMaxThreads()

void ThreadManager::setMaxThreads ( size_t  maxThreads)

◆ unregisterThreadUser() [1/2]

void ThreadManager::unregisterThreadUser ( size_t  id)

◆ unregisterThreadUser() [2/2]

void ThreadManager::unregisterThreadUser ( std::vector< size_t > &  ids)

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