Loading src/event/kqueue.cpp +4 −3 Changes for src/event/kqueue.cpp: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -230,10 +230,10 @@ namespace netplus { std::lock_guard<std::mutex> global_lock(POLL_HANDLER_MUTEX); rcon = reinterpret_cast<con*>(_Events[pos].udata); if (!rcon || !rcon->csock) { return; } } if (!rcon) { return; } buffer buf(BLOCKSIZE); std::lock_guard<std::mutex> lock_guard(rcon->event_mutex); Loading Loading @@ -276,9 +276,10 @@ namespace netplus { wcon = reinterpret_cast<con*>(_Events[pos].udata); if (!wcon || !wcon->csock) { return; } } if (!wcon) { return; } std::lock_guard<std::mutex> lock_guard(wcon->event_mutex); try{ Loading Loading
src/event/kqueue.cpp +4 −3 Changes for src/event/kqueue.cpp: 4 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -230,10 +230,10 @@ namespace netplus { std::lock_guard<std::mutex> global_lock(POLL_HANDLER_MUTEX); rcon = reinterpret_cast<con*>(_Events[pos].udata); if (!rcon || !rcon->csock) { return; } } if (!rcon) { return; } buffer buf(BLOCKSIZE); std::lock_guard<std::mutex> lock_guard(rcon->event_mutex); Loading Loading @@ -276,9 +276,10 @@ namespace netplus { wcon = reinterpret_cast<con*>(_Events[pos].udata); if (!wcon || !wcon->csock) { return; } } if (!wcon) { return; } std::lock_guard<std::mutex> lock_guard(wcon->event_mutex); try{ Loading