22 #include <foxxll/config.hpp> 26 #if FOXXLL_MSVC >= 1700 && FOXXLL_MSVC <= 1800 33 void* (*worker)(
void*),
void* arg, std::thread& t,
37 t = std::thread(worker, arg);
47 #if FOXXLL_MSVC >= 1700 && FOXXLL_MSVC <= 1800 58 WaitForSingleObject(t.native_handle(), INFINITE);
59 CloseHandle(t.native_handle());
A simple semaphore implementation using C++11 synchronization methods.
void set_to(const value_type &new_state)
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)