LV2_LOCK removed

This commit is contained in:
Nekotekina 2017-02-05 16:35:10 +03:00
parent eebd48e51d
commit bf6854d121
5 changed files with 21 additions and 53 deletions

View file

@ -274,7 +274,7 @@ void audio_config::on_task()
// send aftermix event (normal audio event)
LV2_LOCK;
semaphore_lock lock(mutex);
for (u64 key : keys)
{
@ -702,7 +702,7 @@ s32 cellAudioSetNotifyEventQueue(u64 key)
return CELL_AUDIO_ERROR_NOT_INIT;
}
LV2_LOCK;
semaphore_lock lock(g_audio->mutex);
for (auto k : g_audio->keys) // check for duplicates
{
@ -737,7 +737,7 @@ s32 cellAudioRemoveNotifyEventQueue(u64 key)
return CELL_AUDIO_ERROR_NOT_INIT;
}
LV2_LOCK;
semaphore_lock lock(g_audio->mutex);
for (auto i = g_audio->keys.begin(); i != g_audio->keys.end(); i++)
{