add endless-loop monitor

This commit is contained in:
云风
2012-09-28 16:43:04 +08:00
parent 3c460e3c98
commit b46ba5838c
6 changed files with 106 additions and 9 deletions

View File

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