Code::Blocks  SVN r11506
Public Member Functions | Private Types | Private Attributes | List of all members
BackgroundThreadPool Class Reference

#include <backgroundthread.h>

Collaboration diagram for BackgroundThreadPool:

Public Member Functions

 BackgroundThreadPool (size_t num_threads=4)
 
 ~BackgroundThreadPool ()
 
void AddThread (BackgroundThread *t)
 
void Queue (AbstractJob *j)
 

Private Types

typedef std::list< BackgroundThread * > ThreadList
 

Private Attributes

JobQueue queue
 
wxSemaphore semaphore
 
ThreadList threadList
 

Detailed Description

Definition at line 160 of file backgroundthread.h.

Member Typedef Documentation

◆ ThreadList

Definition at line 162 of file backgroundthread.h.

Constructor & Destructor Documentation

◆ BackgroundThreadPool()

BackgroundThreadPool::BackgroundThreadPool ( size_t  num_threads = 4)
inline

Definition at line 169 of file backgroundthread.h.

◆ ~BackgroundThreadPool()

BackgroundThreadPool::~BackgroundThreadPool ( )
inline

Definition at line 175 of file backgroundthread.h.

References Delete(), and wxMilliSleep().

Member Function Documentation

◆ AddThread()

void BackgroundThreadPool::AddThread ( BackgroundThread t)
inline

Definition at line 183 of file backgroundthread.h.

◆ Queue()

void BackgroundThreadPool::Queue ( AbstractJob j)
inline

Definition at line 188 of file backgroundthread.h.

References wxSemaphore::Post(), and JobQueue::Push().

Member Data Documentation

◆ queue

JobQueue BackgroundThreadPool::queue
private

Definition at line 164 of file backgroundthread.h.

◆ semaphore

wxSemaphore BackgroundThreadPool::semaphore
private

Definition at line 165 of file backgroundthread.h.

◆ threadList

ThreadList BackgroundThreadPool::threadList
private

Definition at line 166 of file backgroundthread.h.


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