Date: Thu, 23 Sep 2004 11:16:05 -0700 From: Brooks Davis <brooks@one-eyed-alien.net> To: Waldemar Kornewald <Waldemar.Kornewald@web.de> Cc: FreeBSD-net <freebsd-net@freebsd.org> Subject: Re: locking Message-ID: <20040923181605.GC25699@odin.ac.hmc.edu> In-Reply-To: <4152A3E9.8080700@web.de> References: <4152A3E9.8080700@web.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--1SQmhf2mF2YjsYvc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 23, 2004 at 12:22:33PM +0200, Waldemar Kornewald wrote: > Hi again, > we at the Haiku networking team are considering a port of your 5.3=20 > netstack because it is thread-safe and making the old one (4.x, I think)= =20 > thread-safe is probably a much bigger task. It depends on the model you want. You may also wish to consider the direction DragonFly BSD is taking. It's interesting if unproven. I don't really know enough about Haiku OS to comment more. > Now, I saw that the routing code seems to use macros for the locking=20 > code. Do you use macros everywhere? We usually use macros for locking. It allows us to hid the details of the calls since they aren't very informative. In other cases like ifnet we use macros as though we were using reader-writer locks, but in fact we currently use mutexes since sx locks are more expensive. > We would prefer having native threads and locks. Haiku only has=20 > semaphores, not mutexes, is that a problem? You can implement mutexes using semaphores, but semaphores tend to be a more expensive since they are more expressive them mutexes. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --1SQmhf2mF2YjsYvc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBUxLlXY6L6fI4GtQRAolCAJ9FY208hGaqQeMht/RdkrIYRM7ORwCgw5ad 5gK506YjXGs8BY/nI+BM+SI= =w5gO -----END PGP SIGNATURE----- --1SQmhf2mF2YjsYvc--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040923181605.GC25699>