Article View: borland.public.cppbuilder.nativeapi
Article #14605Re: CreateFileMapping - atomic?
From: Remy Lebeau (TeamB)
Date: Mon, 04 Aug 2003 17:27
Date: Mon, 04 Aug 2003 17:27
21 lines
1512 bytes
1512 bytes
"Paul" <paul.anderson@jhuapl.edu> wrote in message news:3f2e51ac$1@newsgroups.borland.com... > What happens if two apps simultaneously > call the CreateFileMapping function? Only one copy of the shared memory will be created and both apps will receive a handle to the same memory. > Am I guaranteed that only 1 will succeed and the other > will return a valid handle? Yes. > Does the same hold true for named mutexes? Yes. Any named resource will be created only once. Gambit
Technical Details
Message-ID:
<3f2e9610$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f2e51ac$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,df3e866e370eedca X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-04 10:22:49 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f2e51ac$1@newsgroups.borland.com> Subject: Re: CreateFileMapping - atomic? Date: Mon, 4 Aug 2003 10:27:28 -0700 Lines: 23 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.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3f2e9610$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060017680 207.175.226.26 (4 Aug 2003 10:21:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail