diff options
author | nicm <nicm> | 2016-10-15 00:01:01 +0000 |
---|---|---|
committer | nicm <nicm> | 2016-10-15 00:01:01 +0000 |
commit | 9b3ae84993d2493ff0761efbcda0b9d188ed6d9e (patch) | |
tree | 1bc73ae686ffab79340340746955900c843fc3a8 /cmd-queue.c | |
parent | ed971268be7cfd5a4a8223211401654b30a57cbd (diff) | |
download | rtmux-9b3ae84993d2493ff0761efbcda0b9d188ed6d9e.tar.gz rtmux-9b3ae84993d2493ff0761efbcda0b9d188ed6d9e.tar.bz2 rtmux-9b3ae84993d2493ff0761efbcda0b9d188ed6d9e.zip |
Drain notifys once at the end of the server loop instead of doing it
from the end of every command queue (which could be nested).
Diffstat (limited to 'cmd-queue.c')
-rw-r--r-- | cmd-queue.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-queue.c b/cmd-queue.c index bafff1d6..2012e871 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -248,10 +248,8 @@ cmdq_continue(struct cmd_q *cmdq) enum cmd_retval retval; int empty; - cmdq->references++; - notify_disable(); - log_debug("continuing cmdq %p: flags %#x (%p)", cmdq, cmdq->flags, c); + cmdq->references++; empty = TAILQ_EMPTY(&cmdq->queue); if (empty) @@ -296,9 +294,7 @@ empty: empty = 1; out: - notify_enable(); cmdq_free(cmdq); - return (empty); } |