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

#ifndef __CORTEX_MULTI_THREAD_HEADERS__
#define __CORTEX_MULTI_THREAD_HEADERS__
#define PTHREAD
#ifdef PTHREAD
// Linux impl.
#include <pthread.h>
#define THREAD_HANDLE pthread_t
#endif
#ifdef WIN_THREAD
// Windows impl.
#include <WinSock2.h>
#include "Windows.h"
#endif
#ifdef STD_THREAD
#include <thread>
#endif
#endif