Article View: borland.public.cppbuilder.nativeapi
Article #11115Re: synchronizing access to named mutexes
From: Remy Lebeau (TeamB)
Date: Fri, 27 Feb 2004 18:48
Date: Fri, 27 Feb 2004 18:48
17 lines
1695 bytes
1695 bytes
"Dennis Jones" <djones@nospam.com> wrote in message news:403f6f4c$1@newsgroups.borland.com... > No, I don't think so...if the DLL waits on the mutex before the > EXE has opened a handle to it, the wait call will succeed > immediately because the DLL will already have ownership of > the mutex (because it created it). That is not what Bob was suggesting. Have the DLL create a second object, such as an event object via CreateEvent() that is initially unsignalled. Then have the EXE open that same event and signal the event when the EXE is ready. The DLL can wait for the event to be signalled before doing anything else with the EXE. Gambit
Technical Details
Message-ID:
<403f8f1c@newsgroups.borland.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> <dhnu305gp72fdko73lfr2ckr0ps4l7ltf5@4ax.com> <403f6f4c$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 11:03:38 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403ea9c9$1@newsgroups.borland.com> <dhnu305gp72fdko73lfr2ckr0ps4l7ltf5@4ax.com> <403f6f4c$1@newsgroups.borland.com> Subject: Re: synchronizing access to named mutexes Date: Fri, 27 Feb 2004 10:48:48 -0800 Lines: 19 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: 67.22.138.253 Message-ID: <403f8f1c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077907228 67.22.138.253 (27 Feb 2004 10:40:28 -0800) 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