mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
add endless-loop monitor
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
struct skynet_context;
|
||||
struct skynet_message;
|
||||
struct skynet_monitor;
|
||||
|
||||
struct skynet_context * skynet_context_new(const char * name, const char * parm);
|
||||
void skynet_context_grab(struct skynet_context *);
|
||||
@@ -16,6 +17,6 @@ void skynet_context_init(struct skynet_context *, uint32_t handle);
|
||||
int skynet_context_push(uint32_t handle, struct skynet_message *message);
|
||||
void skynet_context_send(struct skynet_context * context, void * msg, size_t sz, uint32_t source, int type, int session);
|
||||
int skynet_context_newsession(struct skynet_context *);
|
||||
int skynet_context_message_dispatch(void); // return 1 when block
|
||||
int skynet_context_message_dispatch(struct skynet_monitor *); // return 1 when block
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user