mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
use pthread_getspecific instead of __thread
This commit is contained in:
@@ -12,6 +12,12 @@ struct skynet_config {
|
||||
const char * standalone;
|
||||
};
|
||||
|
||||
#define THREAD_WORKER 0
|
||||
#define THREAD_MAIN 1
|
||||
#define THREAD_SOCKET 2
|
||||
#define THREAD_TIMER 3
|
||||
#define THREAD_MONITOR 4
|
||||
|
||||
void skynet_start(struct skynet_config * config);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user