Skip to content

Commit

Permalink
fix(core): do not wait for dispatch queue drain on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Aug 20, 2024
1 parent e43d1b4 commit ce1c87c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/core.cc
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,15 @@ namespace SSC {
}

void Core::pauseEventLoop() {
#if !SOCKET_RUNTIME_PLATFORM_LINUX
// wait for drain of event loop dispatch queue
while (true) {
Lock lock(this->mutex);
if (this->eventLoopDispatchQueue.size() == 0) {
break;
}
}
#endif

this->isLoopRunning = false;
do {
Expand Down

0 comments on commit ce1c87c

Please sign in to comment.