]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-coroutine.h
PPC: Bamboo: fold ppc440.c and ppc440_bamboo.c into a single file
[mirror_qemu.git] / qemu-coroutine.h
index b8fc4f43328c0b5e482bd425888d7c2a599b1e35..8a55fe125ebce06ede28d6f2f8b85c1ac99525c0 100644 (file)
@@ -117,6 +117,12 @@ 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.
  *
@@ -124,6 +130,11 @@ void coroutine_fn qemu_co_queue_wait(CoQueue *queue);
  */
 bool qemu_co_queue_next(CoQueue *queue);
 
+/**
+ * Restarts all coroutines in the CoQueue and leaves the queue empty.
+ */
+void qemu_co_queue_restart_all(CoQueue *queue);
+
 /**
  * Checks if the CoQueue is empty.
  */