libUTL++
host_thread.h
1 #pragma once
2 
4 
5 // #include the host system's threads & synchronization headers
6 #if UTL_HOST_OS == UTL_OS_MINGW
7 #include <libutl/win32api.h>
8 #else
9 #include <pthread.h>
10 #include <semaphore.h>
11 #endif
12 
14 
15 UTL_NS_BEGIN;
16 
18 
19 #if UTL_HOST_OS == UTL_OS_MINGW
20 using thread_handle_t = HANDLE;
21 #else
22 using thread_handle_t = pthread_t;
23 #endif
24 
26 
27 UTL_NS_END;