Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Dec 2005 10:44:48 +0100
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        Fredrik Lindberg <fli+freebsd-current@shapeshifter.se>
Cc:        Travis Mikalson <bofh@terranova.net>, current@freebsd.org
Subject:   Re: make.conf options you cannot use for building CURRENT
Message-ID:  <861x0qmuen.fsf@xps.des.no>
In-Reply-To: <439495B1.5060305@shapeshifter.se> (Fredrik Lindberg's message of "Mon, 05 Dec 2005 20:32:01 %2B0100")
References:  <43938F61.1050202@terranova.net> <4393F60E.2040106@shapeshifter.se> <86mzjflc97.fsf@xps.des.no> <439495B1.5060305@shapeshifter.se>

next in thread | previous in thread | raw e-mail | index | archive | help
Fredrik Lindberg <fli+freebsd-current@shapeshifter.se> writes:
> Dag-Erling Sm=F8rgrav wrote:
> > There is no reason to use threads in powerd.  Simply merge the
> > devd_read() loop into your main loop, using select() with a timeout
> > instead of usleep().
> Wouldn't that turn in into a polling style again?

No.

> The reason to use
> devd was to obtain a more interrupt driven model instead of the
> sysctl-polling method originally used. Both metods are supported and
> the devd method is only used if the devd.pipe is avaiable.

If the devd loop is an *alternative* to the polling loop, there's even
less reason to use threads.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861x0qmuen.fsf>