Loading src/event/kqueue.cpp +7 Changes for src/event/kqueue.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -299,6 +299,12 @@ namespace netplus { void CloseEventHandler(int pos,const int tid,ULONG_PTR args) { std::lock_guard<std::mutex> lock(_pollMutex); if (!_Events[pos].udata) { return; } con *ccon = (con*)_Events[pos].udata; if(!ccon) Loading Loading @@ -328,6 +334,7 @@ namespace netplus { }; private: std::mutex _pollMutex; int _pollFD; struct kevent *_Events; socket *_ServerSocket; Loading Loading
src/event/kqueue.cpp +7 Changes for src/event/kqueue.cpp: 7 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -299,6 +299,12 @@ namespace netplus { void CloseEventHandler(int pos,const int tid,ULONG_PTR args) { std::lock_guard<std::mutex> lock(_pollMutex); if (!_Events[pos].udata) { return; } con *ccon = (con*)_Events[pos].udata; if(!ccon) Loading Loading @@ -328,6 +334,7 @@ namespace netplus { }; private: std::mutex _pollMutex; int _pollFD; struct kevent *_Events; socket *_ServerSocket; Loading