Remove RUNLOOP_MSG_QUEUE_FREE

This commit is contained in:
twinaphex 2016-09-29 10:22:46 +02:00
parent d7a90dd9bb
commit 1537ba312d
2 changed files with 5 additions and 8 deletions

View File

@ -808,12 +808,6 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
}
runloop_msg_queue_unlock();
break;
case RUNLOOP_CTL_MSG_QUEUE_FREE:
#ifdef HAVE_THREADS
slock_free(_runloop_msg_queue_lock);
_runloop_msg_queue_lock = NULL;
#endif
break;
case RUNLOOP_CTL_MSG_QUEUE_CLEAR:
msg_queue_clear(runloop_msg_queue);
break;
@ -826,7 +820,11 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
msg_queue_free(runloop_msg_queue);
runloop_msg_queue_unlock();
runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_FREE, NULL);
#ifdef HAVE_THREADS
slock_free(_runloop_msg_queue_lock);
_runloop_msg_queue_lock = NULL;
#endif
runloop_msg_queue = NULL;
break;

View File

@ -102,7 +102,6 @@ enum runloop_ctl_state
/* Message queue */
RUNLOOP_CTL_MSG_QUEUE_INIT,
RUNLOOP_CTL_MSG_QUEUE_DEINIT,
RUNLOOP_CTL_MSG_QUEUE_FREE,
RUNLOOP_CTL_MSG_QUEUE_PULL,
RUNLOOP_CTL_MSG_QUEUE_CLEAR,