mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
first unlock, then broadcast
This commit is contained in:
parent
db55fdf73f
commit
d43cbafc37
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue