mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Better cleanup in MessageManagerLock to avoid spurious assertions when a lock fails on shutdown.
This commit is contained in:
parent
6c30e83de1
commit
005f0be531
1 changed files with 3 additions and 0 deletions
|
|
@ -288,7 +288,10 @@ bool MessageManagerLock::attemptLock (Thread* const threadToCheck, ThreadPoolJob
|
|||
blockingMessage = new BlockingMessage();
|
||||
|
||||
if (! blockingMessage->post())
|
||||
{
|
||||
blockingMessage = nullptr;
|
||||
return false;
|
||||
}
|
||||
|
||||
while (! blockingMessage->lockedEvent.wait (20))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue