Added the mutex locking to the signalEvent()

This commit is contained in:
Raynaldo Rivera 2010-02-18 02:22:50 +00:00
parent b05550fe69
commit 72169dc8f8
4 changed files with 5 additions and 2 deletions

View File

@ -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()){

View File

@ -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())

View File

@ -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()){

View File

@ -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>