mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
36 lines
485 B
C
36 lines
485 B
C
|
#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
|
||
|
|