[174] in Pthreads mailing list archive
API for thread suspend
daemon@ATHENA.MIT.EDU (Ryan Wong Hong Yeh)
Fri Oct 27 05:06:19 1995
From: Ryan Wong Hong Yeh <ryan@stcs.com.sg>
To: pthreads@MIT.EDU
Date: Fri, 27 Oct 95 16:35:13 SST
Hi all
I look through pthread API briefly and can't find a API for suspending
threads ? I understand that one can create a thread a SUSPEND state
but isn't there a API for run time ?
That goest the same to ResumeThread() API too..
See, I am trying to map NT API thread to pthreads. I know it won't be
complete but at least minium change of my codes ;_)
NT API pthreads routines.
==============================================
SuspendThread() --> ?
ResumeThread() --> ?
Sleep () --> ?
WaitForSingleObject() --> pthread_join()
TerminateThread() --> pthread_detach()
SetThreadPriority() --> pthread_attr_*()
GetThreadPriority() --> pthread_attr_*()
Any suggestion ?
Thanks
later,
--
-Ryan
-ryan@stcs.com.sg