mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix race conditions and deadlocks in Channels (hopefully) (issue #554)
Also, this is a giant commit because of the official Code Style (tm) was applied. --HG-- branch : minor
This commit is contained in:
@@ -72,7 +72,7 @@ bool Conditional::wait(thread::Mutex *_mutex, int timeout)
|
||||
// Yes, I realise this can be dangerous,
|
||||
// however, you're asking for it if you're
|
||||
// mixing thread implementations.
|
||||
Mutex *mutex = (Mutex*) _mutex;
|
||||
Mutex *mutex = (Mutex *) _mutex;
|
||||
if (timeout < 0)
|
||||
return !SDL_CondWait(cond, mutex->mutex);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user