Loading src/event/kqueue.cpp +2 −3 Changes for src/event/kqueue.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -199,8 +199,7 @@ namespace netplus { struct kevent setevent {}; setevent.udata = ccon.get(); { std::lock_guard<std::mutex> clock(ccon->event_mutex),global_lock(POLL_HANDLER_MUTEX); EV_SET(&setevent, ccon->csock->fd(), EVFILT_READ, EV_ADD | EV_ONESHOT,0,0,ccon.get()); Loading @@ -219,7 +218,7 @@ namespace netplus { CONNECTIONS.emplace(ccon->csock->fd(),ccon.get()); ccon.release(); } } }; void ReadEventHandler(int pos,const int tid,ULONG_PTR args) { Loading Loading
src/event/kqueue.cpp +2 −3 Changes for src/event/kqueue.cpp: 2 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -199,8 +199,7 @@ namespace netplus { struct kevent setevent {}; setevent.udata = ccon.get(); { std::lock_guard<std::mutex> clock(ccon->event_mutex),global_lock(POLL_HANDLER_MUTEX); EV_SET(&setevent, ccon->csock->fd(), EVFILT_READ, EV_ADD | EV_ONESHOT,0,0,ccon.get()); Loading @@ -219,7 +218,7 @@ namespace netplus { CONNECTIONS.emplace(ccon->csock->fd(),ccon.get()); ccon.release(); } } }; void ReadEventHandler(int pos,const int tid,ULONG_PTR args) { Loading