thread suspend/resume

Ross Johnson rpj@callisto.canberra.edu.au
Wed Mar 30 13:44:00 GMT 2005


On Sat, 2005-03-26 at 21:48 -0800, Robin Rowe wrote: 
> Is there a mechanism in Pthreads for Windows to enable suspend/resume on 
> threads similar to Windows threads?

[I would have responded earlier only I've been out of town.]

Assuming you don't mean 'create suspended' - the underlying Win32 thread
handle can be returned via:-

HANDLE pthread_getw32threadhandle_np(pthread_t thread)

        Returns the win32 thread handle that the POSIX
        thread "thread" is running as.

        Applications can use the win32 handle to set
        win32 specific attributes of the thread.

(From README.NONPORTABLE)

Regards.
Ross




More information about the Pthreads-win32 mailing list