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 
> netstack because it is thread-safe and making the old one (4.x, I think) 
> 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 
> 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 
> 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

-- 
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

Attachment: pgp0tZuIe9Mln.pgp
Description: PGP signature

Reply via email to