🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Wait for the other application to signal

#9672
From: Zwenska Trowalsky
Date: Tue, 29 Jun 2004 10:19
53 lines
1947 bytes

"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: <40e1421e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40e01d33@newsgroups.borland.com> <40e02445@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bb5f3c1473175d75,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: <Zwenska Trowalsky>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <40e01d33@newsgroups.borland.com> <40e02445@newsgroups.borland.com>
Subject: Re: Wait for the other application to signal
Date: Tue, 29 Jun 2004 20:19:03 +1000
Lines: 57
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: 211.30.68.31
Message-ID: <40e1421e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1088504350 211.30.68.31 (29 Jun 2004 03:19:10 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail