16 #ifndef FOXXLL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER 17 #define FOXXLL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER 22 #include <foxxll/config.hpp> 41 void* (*worker)(
void*),
void* arg,
52 #endif // !FOXXLL_IO_REQUEST_QUEUE_IMPL_WORKER_HEADER
A simple semaphore implementation using C++11 synchronization methods.
Interface of a request_queue to which requests can be added and canceled.
void stop_thread(std::thread &t, shared_state< thread_state > &s, tlx::semaphore &sem)
void start_thread(void *(*worker)(void *), void *arg, std::thread &t, shared_state< thread_state > &s)