From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0Z6H-0006BI-SP for qemu-devel@nongnu.org; Mon, 05 Sep 2011 09:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R0Z6A-0001Xd-Vw for qemu-devel@nongnu.org; Mon, 05 Sep 2011 09:20:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R0Z6A-0001XV-LH for qemu-devel@nongnu.org; Mon, 05 Sep 2011 09:20:26 -0400 Message-ID: <4E64CD3B.8080201@redhat.com> Date: Mon, 05 Sep 2011 15:23:07 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1314172671-13123-1-git-send-email-peter.crosthwaite@petalogix.com> In-Reply-To: <1314172671-13123-1-git-send-email-peter.crosthwaite@petalogix.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-coroutine: Add simple work queue support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Peter A. G. Crosthwaite" Cc: qemu-devel@nongnu.org, stefanha@linux.vnet.ibm.com Am 24.08.2011 09:57, schrieb Peter A. G. Crosthwaite: > Add a function co_queue_yield_to_next() which will immediately transfer > control to the coroutine at the head of a co queue. This can be used for > implementing simple work queues where the manager of a co-queue only > needs to restart queued routines one at a time. > > Signed-off-by: Peter A. G. Crosthwaite Is there a difference to qemu_co_queue_next(), except that it doesn't use a bottom half? Is there a reason why using a BH isn't reasonable in your use case? Kevin