use pthread_getspecific instead of __thread

This commit is contained in:
Cloud Wu
2014-04-24 17:55:43 +08:00
parent bd3aa3f3c5
commit bad9a5fc54
6 changed files with 52 additions and 14 deletions

View File

@@ -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