|
Monero
|
#include <threadpool.h>

Public Member Functions | |
| void | inc () |
| void | dec () |
| bool | wait () |
| void | set_error () noexcept |
| Wait for a set of tasks to finish, returns false iff any error. | |
| bool | error () const noexcept |
| waiter (threadpool &pool) | |
| ~waiter () | |
Private Attributes | |
| boost::mutex | mt |
| boost::condition_variable | cv |
| threadpool & | pool |
| int | num |
| bool | error_flag |
|
inline |
| tools::threadpool::waiter::~waiter | ( | ) |
| void tools::threadpool::waiter::dec | ( | ) |
|
inlinenoexcept |
| void tools::threadpool::waiter::inc | ( | ) |
|
inlinenoexcept |
Wait for a set of tasks to finish, returns false iff any error.
| bool tools::threadpool::waiter::wait | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |