mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-29 18:37:36 +08:00
Optimize event processing
This commit is contained in:
parent
39355bc57a
commit
a506c5c53e
@ -56,7 +56,9 @@ void
|
||||
chassis_event_add_with_timeout(chassis *chas, struct event *ev, struct timeval *tv)
|
||||
{
|
||||
event_base_set(chas->event_base, ev);
|
||||
#if NETWORK_DEBUG_TRACE_EVENT
|
||||
CHECK_PENDING_EVENT(ev);
|
||||
#endif
|
||||
event_add(ev, tv);
|
||||
g_debug("%s:event add ev:%p", G_STRLOC, ev);
|
||||
}
|
||||
|
@ -64,9 +64,6 @@ network_connection_pool_entry_free(network_connection_pool_entry *e, gboolean fr
|
||||
|
||||
if (e->sock && free_sock) {
|
||||
network_socket *sock = e->sock;
|
||||
|
||||
g_debug("%s:event del, ev:%p", G_STRLOC, &(sock->event));
|
||||
event_del(&(sock->event));
|
||||
network_socket_free(sock);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user