From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15577 invoked by alias); 30 Mar 2005 13:44:57 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 15133 invoked from network); 30 Mar 2005 13:44:14 -0000 Received: from unknown (HELO quokka.dot.net.au) (202.147.68.16) by sourceware.org with SMTP; 30 Mar 2005 13:44:14 -0000 Received: from [202.147.81.148] (helo=ip-81-148.dot.net.au) by quokka.dot.net.au with esmtp (Exim 3.35 #1 (Debian)) id 1DGdUM-0005sJ-00; Wed, 30 Mar 2005 23:44:06 +1000 Subject: Re: thread suspend/resume From: Ross Johnson To: Robin Rowe Cc: Pthreads-Win32 list In-Reply-To: <107301c53290$91679010$0400a8c0@cary> References: <107301c53290$91679010$0400a8c0@cary> Content-Type: text/plain Date: Wed, 30 Mar 2005 13:44:00 -0000 Message-Id: <1112190244.5905.4.camel@desk.home> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005/txt/msg00049.txt.bz2 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