You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
353 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __CORTEX_MULTI_THREAD_HEADERS__
  2. #define __CORTEX_MULTI_THREAD_HEADERS__
  3. #define PTHREAD
  4. #ifdef PTHREAD
  5. // Linux impl.
  6. #include <pthread.h>
  7. #define THREAD_HANDLE pthread_t
  8. #endif
  9. #ifdef WIN_THREAD
  10. // Windows impl.
  11. #include <WinSock2.h>
  12. #include "Windows.h"
  13. #endif
  14. #ifdef STD_THREAD
  15. #include <thread>
  16. #endif
  17. #endif