Article View: borland.public.cppbuilder.nativeapi
Article #9673Re: Wait for the other application to signal
From: Regis St-Gelais
Date: Tue, 29 Jun 2004 12:07
Date: Tue, 29 Jun 2004 12:07
66 lines
2396 bytes
2396 bytes
You could use mutex as flags
--
Regis St-Gelais
www.laubrass.com
--
<Zwenska Trowalsky> a οΏ½crit dans le message de
news:40e1421e$1@newsgroups.borland.com...
>
>
> "Andrue Cope [TeamB]" <no.spam@spammy.com> wrote in message
> news:40e02445@newsgroups.borland.com...
> > <Zwenska Trowalsky> wrote:
> >
> > > How to implement logic show above ie. how to wait a flag from another
> > > application ?(Scenario A)
> >
> > This is an operating system dependant question and would be better
> > asked in .nativeapi ...
>
>
> Scenario A:
> =========
> Application 1:
>
> while (!FLAG2 from Application2)
> Sleep(1);
> Perform the rest of the operation.
>
> Application 2:
>
> do something
> Set FLAG2 // Allow Application1 to proceed
>
>
> Scenario B:
> =========
> Application 1:
>
> void FLAG2 hander()
> {
> ....
> }
>
> main()
> {
> On FLAG2 Call FLAG2 handler
> while (1) {
> Perform the rest of the operation.
> }
>
> Application 2:
>
> do something
> Set FLAG2 // Allow Application1 to proceed
>
>
>
> How to implement logic show above ie. how to wait a flag from another
> application ?(Scenario A)
> How to create an interrupt handling routine like mechanism ? (Scenario B)
>
>
>
>
Technical Details
Message-ID:
<40e15b68$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40e01d33@newsgroups.borland.com> <40e02445@newsgroups.borland.com> <40e1421e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb5f3c1473175d75 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Regis St-Gelais" <regis.st-gelais@NOSPAMlaubrass.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40e01d33@newsgroups.borland.com> <40e02445@newsgroups.borland.com> <40e1421e$1@newsgroups.borland.com> Subject: Re: Wait for the other application to signal Date: Tue, 29 Jun 2004 08:07:04 -0400 Lines: 67 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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: 24.200.19.15 Message-ID: <40e15b68$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088510824 24.200.19.15 (29 Jun 2004 05:07:04 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail