]> Git Repo - qemu.git/blobdiff - qemu-coroutine-lock.c
Merge remote-tracking branch 'remotes/kraxel/tags/pull-audio-20150615-1' into staging
[qemu.git] / qemu-coroutine-lock.c
index aeb33b9118a7fec8bade8a385a7923db0efe4cd4..6b4903334bdf1d6a591c388a3ebae9bfc1b9c87d 100644 (file)
@@ -41,14 +41,6 @@ void coroutine_fn qemu_co_queue_wait(CoQueue *queue)
     assert(qemu_in_coroutine());
 }
 
-void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue)
-{
-    Coroutine *self = qemu_coroutine_self();
-    QTAILQ_INSERT_HEAD(&queue->entries, self, co_queue_next);
-    qemu_coroutine_yield();
-    assert(qemu_in_coroutine());
-}
-
 /**
  * qemu_co_queue_run_restart:
  *
@@ -116,7 +108,7 @@ bool qemu_co_enter_next(CoQueue *queue)
 
 bool qemu_co_queue_empty(CoQueue *queue)
 {
-    return (QTAILQ_FIRST(&queue->entries) == NULL);
+    return QTAILQ_FIRST(&queue->entries) == NULL;
 }
 
 void qemu_co_mutex_init(CoMutex *mutex)
This page took 0.024027 seconds and 4 git commands to generate.