530:1e117b5d6710 | 531:9b15b1f72bef |
---|---|
46 cxstring name; | 46 cxstring name; |
47 int nthreads; | 47 int nthreads; |
48 int isdefault; | 48 int isdefault; |
49 } EventHandlerConfig; | 49 } EventHandlerConfig; |
50 | 50 |
51 typedef struct EVReturn { | |
52 Session *sn; | |
53 Request *rq; | |
54 int ret; | |
55 } EVReturn; | |
56 | |
51 int create_event_handler(EventHandlerConfig *cfg); | 57 int create_event_handler(EventHandlerConfig *cfg); |
52 | 58 |
53 int check_event_handler_cfg(); | 59 int check_event_handler_cfg(); |
54 | 60 |
55 EVHandler* get_default_event_handler(); | 61 EVHandler* get_default_event_handler(); |
67 int ev_send(EventHandler *h, Event *event); | 73 int ev_send(EventHandler *h, Event *event); |
68 | 74 |
69 int ev_aioread(int fd, aiocb_s *cb); | 75 int ev_aioread(int fd, aiocb_s *cb); |
70 int ev_aiowrite(int fd, aiocb_s *cb); | 76 int ev_aiowrite(int fd, aiocb_s *cb); |
71 | 77 |
78 void ev_saf_return(EventHandler *h, Session *sn, Request *rq, int ret); | |
79 | |
72 | 80 |
73 #ifdef __cplusplus | 81 #ifdef __cplusplus |
74 } | 82 } |
75 #endif | 83 #endif |
76 | 84 |