![]() |
libfilezilla
|
Handle for asynchronous tasks. More...
#include <thread_pool.hpp>
Public Member Functions | |
| ~async_task () | |
| If task has not been detached, calls join. | |
| async_task (async_task const &)=delete | |
| async_task & | operator= (async_task const &)=delete |
| async_task (async_task &&other) noexcept | |
| async_task & | operator= (async_task &&other) noexcept |
| void | join () |
| Wait for the task to finish, adds the now idle thread back into the pool. | |
| operator bool () const | |
| Check whether it's a spawned, unjoined task. | |
| void | detach () |
| Detach the running thread from the task. Once done, the thread adds itself back into the pool. | |
Friends | |
| class | thread_pool |
Handle for asynchronous tasks.
1.8.10