At 3:17 PM -0500 1/4/04, Uri Guttman wrote:
>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:

  DS> And don't forget the libraries that are picky about which thread calls
  DS> into them -- there are some that require that the thread that created
  DS> the handle for the library be the thread that calls into the library
  DS> with that handle. (Though luckily those are pretty rare) And of course
  DS> the non-reentrant libraries that require a global library lock for all
  DS> calls otherwise the library state gets corrupted.

DS> Aren't threads fun? :)

hence my love for events and forked procs.

Forks make some of this worse. There are more libraries that don't work with connections forked across processes than libraries that don't work with calls from a different thread.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to