1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Changed the way Mac messaging works internally to avoid shutdown problems with plugins. Updated some iPhone code. Fixed a CoreGraphics line drawing problem.

This commit is contained in:
Julian Storer 2009-11-16 15:19:16 +00:00
parent 9929d71c27
commit 802f850015
15 changed files with 422 additions and 415 deletions

View file

@ -92,8 +92,6 @@ WaitableEvent::~WaitableEvent() throw()
bool WaitableEvent::wait (const int timeOutMillisecs) const throw()
{
EventStruct* const es = (EventStruct*) internal;
bool ok = true;
pthread_mutex_lock (&es->mutex);
if (timeOutMillisecs < 0)
@ -120,16 +118,15 @@ bool WaitableEvent::wait (const int timeOutMillisecs) const throw()
if (pthread_cond_timedwait (&es->condition, &es->mutex, &time) == ETIMEDOUT)
{
ok = false;
break;
pthread_mutex_unlock (&es->mutex);
return false;
}
}
}
es->triggered = false;
pthread_mutex_unlock (&es->mutex);
return ok;
return true;
}
void WaitableEvent::signal() const throw()