From 87fb007ebcb18dc299993aa966bd8ac47fd7f5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Mon, 30 Nov 2015 08:33:54 -0300 Subject: [PATCH] (runloop_data.c) Get rid of data_runloop_msg rarch_main_msg_queue_push*() functions are thread safe and can be called from anywhere. --- runloop_data.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/runloop_data.c b/runloop_data.c index 3e578bf630..500e7e28b1 100644 --- a/runloop_data.c +++ b/runloop_data.c @@ -20,8 +20,6 @@ #include "tasks/tasks.h" -static char data_runloop_msg[PATH_MAX_LENGTH]; - void rarch_main_data_deinit(void) { rarch_task_deinit(); @@ -29,12 +27,6 @@ void rarch_main_data_deinit(void) void rarch_main_data_iterate(void) { - if (data_runloop_msg[0] != '\0') - { - rarch_main_msg_queue_push(data_runloop_msg, 1, 10, true); - data_runloop_msg[0] = '\0'; - } - rarch_task_check(); } @@ -46,5 +38,5 @@ void rarch_main_data_clear_state(void) void data_runloop_osd_msg(const char *msg, size_t len) { - strlcpy(data_runloop_msg, msg, len); + rarch_main_msg_queue_push(msg, 1, 10, true); }