mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
20 lines
325 B
C
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
|