From owner-freebsd-current@FreeBSD.ORG Sun Mar 15 17:17:05 2009 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 D0DEB1065758 for ; Sun, 15 Mar 2009 17:17:05 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outR.internet-mail-service.net (outr.internet-mail-service.net [216.240.47.241]) by mx1.freebsd.org (Postfix) with ESMTP id E36318FC43 for ; Sun, 15 Mar 2009 17:17:03 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 5004975A78; Sun, 15 Mar 2009 10:16:39 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id C6D532D6024; Sun, 15 Mar 2009 10:16:38 -0700 (PDT) Message-ID: <49BD37FB.7060101@elischer.org> Date: Sun, 15 Mar 2009 10:16:43 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: barney_cordoba@yahoo.com References: <641422.62095.qm@web63907.mail.re1.yahoo.com> In-Reply-To: <641422.62095.qm@web63907.mail.re1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Is there a delay which yields? 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, 15 Mar 2009 17:17:22 -0000 Barney Cordoba wrote: > I'd expect DELAY to yield till timeout but a task with a delay loop just > runs to 100% usage. Is there a function which can yield exectution for > a set amount of time (without having to use a timer)? DELAY is designe for use early in the boot when thre are no timers. it is only occasionally used for cases during normal operation. how would a thread know how long it has been away if no timer is used? > > Barney > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"