🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Sleep() = Suspended in TThread?

#14195
From: Phuoc Can HUA
Date: Wed, 03 Sep 2003 23:04
14 lines
1411 bytes
In a TThread of my program, I'm using Sleep() when no task to be processed 
for a certain time period. Also, I'm using Suspend() to put the thread on 
hold (by user).

Question, if I use the property Suspended to check whether the thread is on 
hold will that also return TRUE while it's sleeping?

thanks
Phuoc Can HUA

-- 
_/\__/\__/\__/\__/\__/\_
www.huaonline.com
My Homepage is my Castle
Technical Details
Message-ID: <oprux41jv1bq7az6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!207.69.154.101.MISMATCH!elnk-atl-nf1!newsfeed.earthlink.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,27decbbbb924bfe0,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-03 16:39:37 PST
Content-Type: text/plain; charset=iso-8859-15; format=flowed
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Sleep() = Suspended in TThread?
From: Phuoc Can HUA <home}a+t{huaonline.com>
MIME-Version: 1.0
Date: Thu, 04 Sep 2003 09:04:21 +1000
Message-ID: <oprux41jv1bq7az6@newsgroups.borland.com>
User-Agent: Opera7.10/Win32 M2 build 2840
NNTP-Posting-Host: 203.194.21.162
X-Trace: newsgroups.borland.com 1062630579 203.194.21.162 (3 Sep 2003 16:09:39 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!207.69.154.101.MISMATCH!elnk-atl-nf1!newsfeed.earthlink.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail