X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_workqueue.hpp;h=047d3dbb4125967f72a83cad68015b30e180aea3;hb=743d6c75f3edfb728f689027347d2de9b0068425;hp=f8ab84c66cb3437a78e32883d435b62e31401298;hpb=23354536051650b7a8a713e824946d48a7734534;p=apitrace diff --git a/common/os_workqueue.hpp b/common/os_workqueue.hpp index f8ab84c..047d3db 100644 --- a/common/os_workqueue.hpp +++ b/common/os_workqueue.hpp @@ -19,9 +19,6 @@ public: virtual ~WorkQueueWork(void) { } }; -extern "C" -void *WorkQueue__entry_thunk(void *data); - class WorkQueue { std::queue work_queue; @@ -35,10 +32,9 @@ class WorkQueue { os::thread thread; void wake_up_thread(void); - void thread_entry(void); int run_tasks(void); - friend void *WorkQueue__entry_thunk(void *data); public: + void thread_entry(void); void queue_work(WorkQueueWork *work); void flush(void); void destroy(void);