1
0
Fork 0
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:
Desour 2024-10-06 16:06:01 +02:00
parent db55fdf73f
commit d43cbafc37

View file

@ -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