Skip to contentSkip to conversation

coroutine: remove qemu_co_queue_wait_insert_head

PATCH New Marc-André Lureau 1 participant 1 message Nov 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coroutine: remove qemu_co_queue_wait_insert_head

qemu_co_queue_wait_insert_head() is unused in qemu code base now.

---
 include/block/coroutine.h | 6 ------
 qemu-coroutine-lock.c     | 8 --------
 2 files changed, 14 deletions(-)
include/block/coroutine.h +0 -6
index 4d5c0cf..b122c0c 100644
@@ -121,12 +121,6 @@ void qemu_co_queue_init(CoQueue *queue);
 void coroutine_fn qemu_co_queue_wait(CoQueue *queue);
 
 /**
- * Adds the current coroutine to the head of the CoQueue and transfers control to the
- * caller of the coroutine.
- */
-void coroutine_fn qemu_co_queue_wait_insert_head(CoQueue *queue);
-
-/**
  * Restarts the next coroutine in the CoQueue and removes it from the queue.
  *
  * Returns true if a coroutine was restarted, false if the queue is empty.
qemu-coroutine-lock.c +0 -8
index aeb33b9..e4860ae 100644
@@ -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:
  *
Signature · 1 line
1.8.4.2