Remove another RUNLOOP_CTL_ action
This commit is contained in:
parent
d0a1c8609f
commit
830f64446b
|
@ -145,7 +145,7 @@ void runloop_msg_queue_push(const char *msg,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (flush)
|
if (flush)
|
||||||
runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_CLEAR, NULL);
|
msg_queue_clear(runloop_msg_queue);
|
||||||
|
|
||||||
msg_info.msg = msg;
|
msg_info.msg = msg;
|
||||||
msg_info.prio = prio;
|
msg_info.prio = prio;
|
||||||
|
@ -509,9 +509,6 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
|
||||||
slock_unlock(_runloop_msg_queue_lock);
|
slock_unlock(_runloop_msg_queue_lock);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case RUNLOOP_CTL_MSG_QUEUE_CLEAR:
|
|
||||||
msg_queue_clear(runloop_msg_queue);
|
|
||||||
break;
|
|
||||||
case RUNLOOP_CTL_MSG_QUEUE_DEINIT:
|
case RUNLOOP_CTL_MSG_QUEUE_DEINIT:
|
||||||
if (!runloop_msg_queue)
|
if (!runloop_msg_queue)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -94,7 +94,6 @@ enum runloop_ctl_state
|
||||||
RUNLOOP_CTL_MSG_QUEUE_INIT,
|
RUNLOOP_CTL_MSG_QUEUE_INIT,
|
||||||
RUNLOOP_CTL_MSG_QUEUE_DEINIT,
|
RUNLOOP_CTL_MSG_QUEUE_DEINIT,
|
||||||
RUNLOOP_CTL_MSG_QUEUE_PULL,
|
RUNLOOP_CTL_MSG_QUEUE_PULL,
|
||||||
RUNLOOP_CTL_MSG_QUEUE_CLEAR,
|
|
||||||
|
|
||||||
/* Core options */
|
/* Core options */
|
||||||
RUNLOOP_CTL_HAS_CORE_OPTIONS,
|
RUNLOOP_CTL_HAS_CORE_OPTIONS,
|
||||||
|
|
Loading…
Reference in New Issue