X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_workqueue.hpp;h=1c6798c1ac3f08ce2ee7ca11a5517e30f427230b;hb=e86f5a2f9b1e57ee2535a285f6385878c78cf0ea;hp=e6b77d4ca408c0c262589d5c9f025084e2cc6af8;hpb=8ecded8401d50cc3e8cc980243a016758550d950;p=apitrace diff --git a/common/os_workqueue.hpp b/common/os_workqueue.hpp index e6b77d4..1c6798c 100644 --- a/common/os_workqueue.hpp +++ b/common/os_workqueue.hpp @@ -3,8 +3,10 @@ #include -namespace os -{ +#include "os_thread.hpp" + +namespace os { + class WorkQueue; @@ -26,10 +28,10 @@ class WorkQueue { bool busy; bool exit_workqueue; - pthread_cond_t wake_cond; - pthread_cond_t complete_cond; + os::condition_variable wake_cond; + os::condition_variable complete_cond; - pthread_mutex_t lock; + os::mutex mutex; void wake_up_thread(void); void thread_entry(void);