jGL
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jThread::ThreadPool Class Reference

#include <jThread.h>

Public Member Functions

 ThreadPool (size_t n)
 
void queueJob (const std::function< void(void)> &job)
 
bool busy ()
 
void wait ()
 
void stop ()
 
 ~ThreadPool ()
 
void joinThread ()
 
void joinAll ()
 
void createThread ()
 
size_t size ()
 

Constructor & Destructor Documentation

◆ ThreadPool()

jThread::ThreadPool::ThreadPool ( size_t  n)
inline

◆ ~ThreadPool()

jThread::ThreadPool::~ThreadPool ( )
inline

Member Function Documentation

◆ busy()

bool jThread::ThreadPool::busy ( )
inline

◆ createThread()

void jThread::ThreadPool::createThread ( )
inline

◆ joinAll()

void jThread::ThreadPool::joinAll ( )
inline

◆ joinThread()

void jThread::ThreadPool::joinThread ( )
inline

◆ queueJob()

void jThread::ThreadPool::queueJob ( const std::function< void(void)> &  job)
inline

◆ size()

size_t jThread::ThreadPool::size ( )
inline

◆ stop()

void jThread::ThreadPool::stop ( )
inline

◆ wait()

void jThread::ThreadPool::wait ( )
inline

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