Skip to content

Commit

Permalink
put new connection abort functions in the declaration block
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Wecker committed Jul 13, 2012
1 parent 11697d4 commit 2b451ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gx_event.h
Expand Up @@ -127,6 +127,8 @@ gx_pool_init(gx_tcp_sess);
GX_INLINE int NAME ## _add_acceptor(int afd, int(*ahandler)(gx_tcp_sess *)); \
GX_INLINE int NAME ## _wait(int timeout, \
int (*misc_handler)(gx_tcp_sess *, uint32_t)); \
GX_INLINE int NAME ## _abort_sess(gx_tcp_sess *sess); \
GX_INLINE int NAME ## _abort_sess2(gx_tcp_sess *sess,int); \

#define gx_eventloop_implement(NAME, EXPECTED_SESSIONS, EVENTS_AT_A_TIME) \
struct GX_EVENT_STRUCT NAME ## _events[EVENTS_AT_A_TIME]; \
Expand Down

0 comments on commit 2b451ad

Please sign in to comment.