terimber_threadpool Class Reference
abstract interface for the
thread pool
More...
#include <threadpoolfactory.h>
List of all members.
Detailed Description
abstract interface for the
thread pool
Definition at line 63 of file threadpoolfactory.h.
Constructor & Destructor Documentation
virtual terimber_threadpool::~terimber_threadpool |
( |
|
) |
[inline, virtual] |
Member Function Documentation
virtual bool terimber_threadpool::borrow_thread |
( |
size_t |
ident, |
|
|
void * |
data, |
|
|
terimber_thread_employer * |
client, |
|
|
size_t |
stay_on_alert_time_msec | |
|
) |
| | [pure virtual] |
user can call function even inside v_do_real_job function - see above
- Parameters:
-
ident |
thread ident will be used as input parameter for client thread functions |
data |
user defined data will be used as input parameter for client thread functions |
client |
user callback |
stay_on_alert_time_msec |
time in milliseconds until unused thread will go back to the pool |
Implemented in threadpool.
virtual bool terimber_threadpool::borrow_from_range |
( |
size_t |
from, |
|
|
size_t |
to, |
|
|
void * |
data, |
|
|
terimber_thread_employer * |
client, |
|
|
size_t |
stay_on_alert_time_msec | |
|
) |
| | [pure virtual] |
user can ask for a little help and wake up any available thread in the provided range of idents
- Parameters:
-
from |
from ident |
to |
to ident |
data |
user defined data will be used as input parameter for client thread functions |
client |
user callback |
stay_on_alert_time_msec |
time in milliseconds until unused thread will go back to the pool |
Implemented in threadpool.
sometimes we need to stop calling client functions immediately however the client function calles already in progress should be completed
- Parameters:
-
Implemented in threadpool.
virtual void terimber_threadpool::doxray |
( |
|
) |
[pure virtual] |
The documentation for this class was generated from the following file: