From owner-freebsd-current@FreeBSD.ORG Sun Oct 30 15:11:41 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1B68106564A; Sun, 30 Oct 2011 15:11:41 +0000 (UTC) (envelope-from lev@freebsd.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 779648FC16; Sun, 30 Oct 2011 15:11:41 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:504f:9791:43c0:21ab]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 83D054AC1C; Sun, 30 Oct 2011 19:11:40 +0400 (MSK) Date: Sun, 30 Oct 2011 19:11:31 +0400 From: Lev Serebryakov X-Priority: 3 (Normal) Message-ID: <435960310.20111030191131@serebryakov.spb.ru> To: Kostik Belousov In-Reply-To: <20111030150339.GP50300@deviant.kiev.zoral.com.ua> References: <43470728.20111030185451@serebryakov.spb.ru> <20111030150339.GP50300@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org, current@freebsd.org Subject: Re: In-kernel API for tasks, which could wait? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2011 15:11:41 -0000 Hello, Kostik. You wrote 30 =EE=EA=F2=FF=E1=F0=FF 2011 =E3., 19:03:39: > See taskqueue(9). On the other hand, waiting for the enqueued task to > finish is itself the sleepable action. I'll not wait for finishing. Task will put result to volatile atomic field, and it's all.=20 --=20 // Black Lion AKA Lev Serebryakov