mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 03:10:14 +00:00
Take it outside of the mutex lock
This commit is contained in:
parent
c8b83de31c
commit
5e57b96225
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user