mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Minor SVG fix. Added manual reset option to WaitableEvent. Made AudioFilterStreamer update channel numbers when the audio device changes.
This commit is contained in:
parent
f198f06e6a
commit
ca348c06d7
8 changed files with 53 additions and 26 deletions
|
|
@ -64,8 +64,9 @@ void CriticalSection::exit() const throw()
|
|||
class WaitableEventImpl
|
||||
{
|
||||
public:
|
||||
WaitableEventImpl()
|
||||
: triggered (false)
|
||||
WaitableEventImpl (const bool manualReset_)
|
||||
: triggered (false),
|
||||
manualReset (manualReset_)
|
||||
{
|
||||
pthread_cond_init (&condition, 0);
|
||||
pthread_mutex_init (&mutex, 0);
|
||||
|
|
@ -118,7 +119,9 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
triggered = false;
|
||||
if (! manualReset)
|
||||
triggered = false;
|
||||
|
||||
pthread_mutex_unlock (&mutex);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -142,13 +145,14 @@ private:
|
|||
pthread_cond_t condition;
|
||||
pthread_mutex_t mutex;
|
||||
bool triggered;
|
||||
const bool manualReset;
|
||||
|
||||
WaitableEventImpl (const WaitableEventImpl&);
|
||||
WaitableEventImpl& operator= (const WaitableEventImpl&);
|
||||
};
|
||||
|
||||
WaitableEvent::WaitableEvent() throw()
|
||||
: internal (new WaitableEventImpl())
|
||||
WaitableEvent::WaitableEvent (const bool manualReset) throw()
|
||||
: internal (new WaitableEventImpl (manualReset))
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue