Take it outside of the mutex lock

This commit is contained in:
twinaphex 2015-09-22 22:44:56 +02:00
parent c8b83de31c
commit 5e57b96225

View File

@ -73,16 +73,16 @@ void rarch_main_msg_queue_push(const char *msg, unsigned prio, unsigned duration
msg_queue_clear(g_msg_queue);
msg_queue_push(g_msg_queue, msg, prio, duration);
#ifdef HAVE_THREADS
slock_unlock(mq_lock);
#endif
if (ui_companion_is_on_foreground())
{
const ui_companion_driver_t *ui = ui_companion_get_ptr();
if (ui->msg_queue_push)
ui->msg_queue_push(msg, prio, duration, flush);
}
#ifdef HAVE_THREADS
slock_unlock(mq_lock);
#endif
}
void rarch_main_msg_queue_free(void)