Dimitrie O. Paun wrote:
On February 5, 2003 03:36 am, David Fraser wrote:Just looked at the Cygwin source, and it looks like they do.
Under cygwin, there is no clone call as far as I can make out ... there isDo threads in Cygwin's pthreads map one-to-one to Windows threads?
pthreads support and there is hackish support for fork.
pthread::create in src/winsup/cygwin/thread.cc calls native Windows ::CreateThread
and stores the returned HANDLE in win32_obj_id (a member of the pthread class).
This is then accessible as (*thread)->win32_obj_id from the pthread_t *thread pointer.
So that looks sufficient ... if Wine can use ptherads...
David