diff options
Diffstat (limited to 'platform/winrt/thread_winrt.h')
-rw-r--r-- | platform/winrt/thread_winrt.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/platform/winrt/thread_winrt.h b/platform/winrt/thread_winrt.h new file mode 100644 index 0000000000..6140c9c506 --- /dev/null +++ b/platform/winrt/thread_winrt.h @@ -0,0 +1,35 @@ +#ifndef THREAD_WINRT_H +#define THREAD_WINRT_H + +#ifdef WINRT_ENABLED + +#include "os/thread.h" + +#include <thread> + +class ThreadWinrt : public Thread { + + std::thread thread; + + static Thread* create_func_winrt(ThreadCreateCallback p_callback,void *,const Settings&); + static ID get_thread_ID_func_winrt(); + static void wait_to_finish_func_winrt(Thread* p_thread); + + ThreadWinrt(); +public: + + + virtual ID get_ID() const; + + static void make_default(); + + + ~ThreadWinrt(); + +}; + + +#endif + +#endif + |