NT Threads

Emanuele ALIBERTI ealiberti@hotmail.com
Sat Jul 31 18:34:00 GMT 1999


>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



More information about the Cygwin mailing list