Article View: borland.public.cppbuilder.nativeapi
Article #11784Re: Does Sleep() in a TThread put the entire Program on hold?
From: Rodolfo Frino - Macrosoft
Date: Wed, 14 Jan 2004 11:48
Date: Wed, 14 Jan 2004 11:48
26 lines
2119 bytes
2119 bytes
> > Please update your knowledge about Sleep() from the built-in > > Windows SDK help files. > > I'm well aware of those functions. I'm also well aware that under 99% of > cases, worker threads do not usually need to create their own windows, all > GUI work should be kept in the main thread as much as possible. The main > exceptions are DDE and COM. I'm also well aware that the help file is > seriously outdated and incomplete, MSDN has more information about the issue > than the help file does. You don't know that. There could be applications that use threads to create all sort of windows. If you make bold assumptions like that you will be wrong. The MS online information might be up-to-dat, but still, it has got nasty errors. Specifically, I have found errors in the threads section with code that did not compile. I mentioned the Windows SDK help files as a good starting point for you to read, however, you should not limit your reading to these two sources only. Rodolfo "Life's good" LG :-)
Technical Details
Message-ID:
<40052c91@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<opr1ova71yeb6hof@newsgroups.borland.com> <400346eb$1@newsgroups.borland.com> <4004cafd@newsgroups.borland.com> <4004d099$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,fd7e6a3bf57d032f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-14 04:09:46 PST From: "Rodolfo Frino - Macrosoft" <Microhaven@Atlantis.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <opr1ova71yeb6hof@newsgroups.borland.com> <400346eb$1@newsgroups.borland.com> <4004cafd@newsgroups.borland.com> <4004d099$1@newsgroups.borland.com> Subject: Re: Does Sleep() in a TThread put the entire Program on hold? Date: Wed, 14 Jan 2004 22:48:34 +1100 Lines: 28 Organization: Microhaven X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.17.9 Message-ID: <40052c91@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074080913 203.206.17.9 (14 Jan 2004 03:48:33 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail