Skip to content

Commit

Permalink
first unlock, then broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour committed Oct 6, 2024
1 parent ad3ae8d commit cb7e331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/threading/ipc_channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ static void post(IPCChannelBuffer *buf) noexcept
{
pthread_mutex_lock(&buf->mutex);
buf->posted = true;
pthread_cond_broadcast(&buf->cond);
pthread_mutex_unlock(&buf->mutex);
pthread_cond_broadcast(&buf->cond);
}

#endif
Expand Down

0 comments on commit cb7e331

Please sign in to comment.