coroutine: remove qemu_co_queue_wait_insert_head

qemu_co_queue_wait_insert_head() is unused in qemu code base now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Marc-André Lureau 2013-12-01 22:23:34 +01:00 committed by Stefan Hajnoczi
parent 981cbf59b5
commit f287c41381
2 changed files with 0 additions and 14 deletions

View File

@ -120,12 +120,6 @@ void qemu_co_queue_init(CoQueue *queue);
*/ */
void coroutine_fn qemu_co_queue_wait(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. * Restarts the next coroutine in the CoQueue and removes it from the queue.
* *

View File

@ -41,14 +41,6 @@ void coroutine_fn qemu_co_queue_wait(CoQueue *queue)
assert(qemu_in_coroutine()); 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: * qemu_co_queue_run_restart:
* *