Files
skynet/skynet-src/skynet_imp.h

20 lines
325 B
C

#ifndef SKYNET_IMP_H
#define SKYNET_IMP_H
struct skynet_config {
int thread;
int harbor;
const char * module_path;
const char * bootstrap;
};
#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