Strategies for Implementing POSIX Condition Variables on Win32 Douglas C. Schmidt and Irfan Pyarali Department of Computer Science Washington University, St. Louis, Missouri 1. Introduction The threading API provided by the Microsoft Win32 [R... 続きを読む
#ifndef start_thread_h #define start_thread_h extern "C" { #include } template struct start_thread_t { pthread_t thr_; start_thread_t(T* obj) { pthread_create(&thr_, NULL, _run, obj); } static void* _run(void* obj) { return static_cast(obj)->... 続きを読む