mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +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_clear(g_msg_queue);
|
||||||
msg_queue_push(g_msg_queue, msg, prio, duration);
|
msg_queue_push(g_msg_queue, msg, prio, duration);
|
||||||
|
|
||||||
|
#ifdef HAVE_THREADS
|
||||||
|
slock_unlock(mq_lock);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ui_companion_is_on_foreground())
|
if (ui_companion_is_on_foreground())
|
||||||
{
|
{
|
||||||
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
||||||
if (ui->msg_queue_push)
|
if (ui->msg_queue_push)
|
||||||
ui->msg_queue_push(msg, prio, duration, flush);
|
ui->msg_queue_push(msg, prio, duration, flush);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
|
||||||
slock_unlock(mq_lock);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void rarch_main_msg_queue_free(void)
|
void rarch_main_msg_queue_free(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user