This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: NT Threads


>Does anybody know of any functions in Windows NT that
>are
>comparable to the following unix-based functions:
>
>pthread_detach()
>thr_join()
>thr_yield() [besides the NT sleep(0) function]     ?

Win32 has these functions for kernel- and user- threads (user threads are 
called "fibers" and are not preempted by the scheduler, since they live in a 
kernel thread; they are much like coroutines):

ConvertThreadToFiber
CreateFiber
CreateRemoteThread
CreateThread
DeleteFiber
DisableThreadLibraryCalls
ExitThread
FreeLibraryAndExitThread
GetCurrentThread
GetCurrentThreadId
GetExitCodeThread
GetThreadContext
GetThreadLocale
GetThreadPriority
GetThreadPriorityBoost
GetThreadSelectorEntry
GetThreadTimes
ResumeThread
SetThreadAffinityMask
SetThreadContext
SetThreadIdealProcessor
SetThreadLocale
SetThreadPriority
SetThreadPriorityBoost
SuspendThread
SwitchToFiber
SwitchToThread
TerminateThread

I hope among them you can find those with matching semantics.


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]