Article View: borland.public.cppbuilder.nativeapi
Article #9226Re: Wait for "signal" from another application and/or thread
From: Remy Lebeau (TeamB)
Date: Mon, 26 Jul 2004 21:29
Date: Mon, 26 Jul 2004 21:29
45 lines
2008 bytes
2008 bytes
<zoom> wrote in message news:4105617c$1@newsgroups.borland.com...
> while(!Terminated && !MYSIGNAL) {
> //?? How to implement following line ??
> wait for MYSIGNAL
> ...
> }
Use OpenEvent() and WaitForSingleObject().
> while(!Terminated ) {
> if (Some Condition) {
> //?? How to implement following line ??
> raise MYSIGNAL
> }
> ...
> }
Use CreateEvent() and SetEvent().
> while(!Terminated && !MYSIGNAL) {
> //?? How to implement following line ??
> wait for MYSIGNAL for 200millisecond
> if (MYSIGNAL)
> Do this..
> else
> Do that..
> ...
> }
Same as above.
> while(!Terminated ) {
> if (Some Condition) {
> //?? How to implement following line ??
> raise MYSIGNAL
> }
> ...
> }
Same as above.
Gambit
Technical Details
Message-ID:
<4105777f$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4105617c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b6552239fe09c315 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4105617c$1@newsgroups.borland.com> Subject: Re: Wait for "signal" from another application and/or thread Date: Mon, 26 Jul 2004 14:29:51 -0700 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4105777f$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090877311 68.69.17.41 (26 Jul 2004 14:28:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail