🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5897

Re: Check Thread State

#5897
From: qyte
Date: Thu, 23 Jun 2005 20:48
10 lines
1433 bytes
Remy Lebeau (TeamB) wrote:

> Not directly, no.  Most thread-related API functions require a thread
> handle, not a thread ID.  The API does not have any means of obtaining a
> thread handle from a thread ID.

if i have created a thread that in it's constructor method
i have FreeOnTerminate=true; if i declare the TMyThread *MyThread; 
global is there a way of knowing if the thread still runs or if is has
been terminated and therefore freed???
Technical Details
Message-ID: <42bb2031$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42bafc6d$1@newsgroups.borland.com> <42bb04df$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d956c8a88fce8455
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 23 Jun 2005 23:48:50 +0300
From: qyte <gyte@vivodinet.gr>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Check Thread State
References: <42bafc6d$1@newsgroups.borland.com> <42bb04df$2@newsgroups.borland.com>
In-Reply-To: <42bb04df$2@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1253; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 83.171.210.195
Message-ID: <42bb2031$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119559729 83.171.210.195 (23 Jun 2005 13:48:49 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail