14 #ifndef THREADDUMMYIMPL_H
15 #define THREADDUMMYIMPL_H
20 #ifdef THREAD_DUMMY_IMPL
28 #ifndef WIN32_LEAN_AND_MEAN
29 #define WIN32_LEAN_AND_MEAN 1
38 class EXPCL_PANDA_PIPELINE ThreadDummyImpl {
40 INLINE ThreadDummyImpl(
Thread *parent_obj);
41 INLINE ~ThreadDummyImpl();
43 INLINE
void setup_main_thread();
44 INLINE
bool start(ThreadPriority priority,
bool joinable);
46 INLINE
void preempt();
48 std::string get_unique_id()
const;
50 INLINE
static void prepare_for_exit();
52 static Thread *get_current_thread();
53 INLINE
static void bind_thread(
Thread *thread);
54 INLINE
static bool is_threading_supported();
55 INLINE
static bool is_true_threads();
56 INLINE
static bool is_simple_threads();
57 INLINE
static void sleep(
double seconds);
58 INLINE
static void yield();
59 INLINE
static void consider_yield();
64 #endif // THREAD_DUMMY_IMPL