Go to the FreeLists Home Page Home Signup Help Login
 



[openbeosnetteam] || [Date Prev] [08-2002 Date Index] [Date Next] || [Thread Prev] [08-2002 Thread Index] [Thread Next]

[openbeosnetteam] Re: Yet another select() support fix. again.

  • From: "Marcus Overhagen" <ml@xxxxxxxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Fri, 09 Aug 2002 21:25:58 CEST (+0200)
> I really don't like having these fd_sets duplicated in both 
> net_stack_cookie and internal socket structs.
> Maybe select() could share the three fd_sets bits vectors thru a 
> area_id + offsets, instead?
I don't think that a few additional copies are reason enough 
for optimizing something that is not finished.

> BTW, is select() supposed to be thread-safety or not?
I think no posix calles are supposed to be thread save.
But I suppose it must work that one thread calles select(), and and
another calles write() or something like this. This means that you 
have to properly lock and unlock internal data.

Marcus







[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.