Dimitrie O. Paun wrote:

On February 5, 2003 03:36 am, David Fraser wrote:

Under cygwin, there is no clone call as far as I can make out ... there is
pthreads support and there is hackish support for fork.

Do threads in Cygwin's pthreads map one-to-one to Windows threads?

Just looked at the Cygwin source, and it looks like they do.
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





Reply via email to