Alex Korobka wrote:

> This topic already came up before the decision to use clone(). 
> Pthreads API lacks several functions necessary to implement certain 
> Windows thread API.

True, we probably cannot just use the POSIX thread API, with only the
sematics as guaranteed by the standard.  We could, however, use the
LinuxThreads library (implementing POSIC threads on Linux) and rely
-in addition to the standard semantics- on certain implementation-specific
features, like the fact that every thread does, in fact, have a pid of
its own which can be used to send signals and do ptrace etc.

While this unfortunately means that the Wine thread handling still isn't
portable (but neither is the current implementation), it might give the
advantage of proper cooperation with other pthread-using libraries like
libc and OpenGL *on Linux* at least.

Bye,
Ulrich

-- 
  Ulrich Weigand,
  IMMD 1, Universitaet Erlangen-Nuernberg,
  Martensstr. 3, D-91058 Erlangen, Phone: +49 9131 85-27688

Reply via email to