From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar1z1-0005io-QG for qemu-devel@nongnu.org; Fri, 15 Apr 2016 07:32:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ar1yz-0008Np-Jp for qemu-devel@nongnu.org; Fri, 15 Apr 2016 07:32:19 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ar1yz-0008Nd-D2 for qemu-devel@nongnu.org; Fri, 15 Apr 2016 07:32:17 -0400 Received: by mail-wm0-x243.google.com with SMTP id l6so5401667wml.3 for ; Fri, 15 Apr 2016 04:32:17 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 15 Apr 2016 13:31:58 +0200 Message-Id: <1460719926-12950-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1460719926-12950-1-git-send-email-pbonzini@redhat.com> References: <1460719926-12950-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 03/11] coroutine: delete qemu_co_enter_next List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, famz@redhat.com, kwolf@redhat.com, berto@igalia.com Signed-off-by: Paolo Bonzini --- include/qemu/coroutine.h | 5 ----- util/qemu-coroutine-lock.c | 14 -------------- 2 files changed, 19 deletions(-) diff --git a/include/qemu/coroutine.h b/include/qemu/coroutine.h index 63ae7fe..bb23be0 100644 --- a/include/qemu/coroutine.h +++ b/include/qemu/coroutine.h @@ -130,11 +130,6 @@ bool coroutine_fn qemu_co_queue_next(CoQueue *queue); void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue); /** - * Enter the next coroutine in the queue - */ -bool qemu_co_enter_next(CoQueue *queue); - -/** * Checks if the CoQueue is empty. */ bool qemu_co_queue_empty(CoQueue *queue); diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c index cf53693..1f46970 100644 --- a/util/qemu-coroutine-lock.c +++ b/util/qemu-coroutine-lock.c @@ -93,20 +93,6 @@ void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue) qemu_co_queue_do_restart(queue, false); } -bool qemu_co_enter_next(CoQueue *queue) -{ - Coroutine *next; - - next = QSIMPLEQ_FIRST(&queue->entries); - if (!next) { - return false; - } - - QSIMPLEQ_REMOVE_HEAD(&queue->entries, co_queue_next); - qemu_coroutine_enter(next, NULL); - return true; -} - bool qemu_co_queue_empty(CoQueue *queue) { return QSIMPLEQ_FIRST(&queue->entries) == NULL; -- 2.5.5