Added the mutex locking to the signalEvent()
This commit is contained in:
parent
b05550fe69
commit
72169dc8f8
|
@ -418,6 +418,7 @@ namespace cAudio
|
|||
|
||||
void cAudioCapture::signalEvent(Events sevent)
|
||||
{
|
||||
cAudioMutexBasicLock lock(Mutex);
|
||||
std::list<ICaptureEventHandler*>::iterator it = eventHandlerList.begin();
|
||||
|
||||
if(it != eventHandlerList.end()){
|
||||
|
|
|
@ -498,6 +498,7 @@ namespace cAudio
|
|||
|
||||
void cAudioManager::signalEvent(Events sevent)
|
||||
{
|
||||
cAudioMutexBasicLock lock(Mutex);
|
||||
std::list<IManagerEventHandler*>::iterator it = eventHandlerList.begin();
|
||||
|
||||
if(it != eventHandlerList.end())
|
||||
|
|
|
@ -770,6 +770,7 @@ namespace cAudio
|
|||
|
||||
void cAudioSource::signalEvent(Events sevent)
|
||||
{
|
||||
cAudioMutexBasicLock lock(Mutex);
|
||||
std::list<ISourceEventHandler*>::iterator it = eventHandlerList.begin();
|
||||
|
||||
if(it != eventHandlerList.end()){
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<Project filename="Examples\Tutorial5_AudioEffects\Tutorial5_AudioEffects.cbp" />
|
||||
<Project filename="Examples\Tutorial6_CustomEventHandler\Tutorial6_CustomEventHandler.cbp" />
|
||||
<Project filename="Examples\Tutorial7_CustomLogReceiver\Tutorial7_CustomLogReceiver.cbp" />
|
||||
<Project filename="plugins\mp3Decoder\mp3Decoder.cbp" />
|
||||
<Project filename="plugins\EAXLegacyPreset\EAXLegacyPreset.cbp" active="1" />
|
||||
<Project filename="plugins\mp3Decoder\mp3Decoder.cbp" active="1" />
|
||||
<Project filename="plugins\EAXLegacyPreset\EAXLegacyPreset.cbp" />
|
||||
</Workspace>
|
||||
</CodeBlocks_workspace_file>
|
||||
|
|
Loading…
Reference in New Issue