🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: File Creation and contention

#2213
From: Mike K
Date: Fri, 23 Mar 2007 17:03
14 lines
1464 bytes
If you're going to give each application the same rights to create and 
write to the file, you may want to use a mutex to lock the file for 
writing.  I assume each app can test for the existence of the file to 
determine whether or not it should be created.



John Grabner wrote:
> Hi Vladimir,
> this is good. Unfortunately I meant several separate applications. So 
> the critical section won't do it. Do you know of the equivalent for 
> separate application? And if so, do you have an example?
> 
> John.
Technical Details
Message-ID: <46040861$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4603628f$1@newsgroups.borland.com> <46039a75@newsgroups.borland.com> <46039f9b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5d20743a8be4a735
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 23 Mar 2007 12:03:31 -0500
From: Mike K <nospam@nospam.net>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: File Creation and contention
References: <4603628f$1@newsgroups.borland.com> <46039a75@newsgroups.borland.com> <46039f9b$1@newsgroups.borland.com>
In-Reply-To: <46039f9b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 74.38.237.178
Message-ID: <46040861$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1174669409 74.38.237.178 (23 Mar 2007 10:03:29 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail