Article View: borland.public.cppbuilder.nativeapi
Article #11106Re: synchronizing access to named mutexes
From: Bob Gonder
Date: Fri, 27 Feb 2004 15:17
Date: Fri, 27 Feb 2004 15:17
13 lines
1598 bytes
1598 bytes
Dennis Jones wrote: >Communications synchronization is managed with a pair of named mutexes. >After calling CreateProcess to start the EXE, the DLL sleeps for 1 second >before sending any commands to the EXE, which typically gives the EXE enough >never respond to the command. So my question is, how can the DLL know when >the EXE has opened the memory-mapped file and named mutexes, and is ready to >begin receiving requests? Aren't the signaling mechanisms you employ 2-way? The DLL could wait for a signal. The EXE would set the signal after it has warmed up.
Technical Details
Message-ID:
<dhnu305gp72fdko73lfr2ckr0ps4l7ltf5@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<403ea9c9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,147e3de49808f5a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-27 07:19:42 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: synchronizing access to named mutexes Date: Fri, 27 Feb 2004 07:17:54 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <dhnu305gp72fdko73lfr2ckr0ps4l7ltf5@4ax.com> References: <403ea9c9$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.166.85 X-Trace: newsgroups.borland.com 1077895074 67.31.166.85 (27 Feb 2004 07:17:54 -0800) Lines: 15 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail