Started playing with Wineserver on mingw/cygwin again

David Fraser davidf at sjsoft.com
Wed Feb 5 12:25:44 CST 2003


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





More information about the wine-devel mailing list