realbasic-nug
[Top] [All Lists]

Re: Mac OS X File Interlock

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Mac OS X File Interlock
From: "Steve Garman" <realbasic at garman dot demon dot co dot uk>
Date: Fri, 30 Dec 2005 15:32:00 +0000
Delivered-to: realbasic-nug at lists dot realsoftware dot com
In a message regarding Mac OS X File Interlock dated Fri, 30 Dec 2005
09:18:31 -0600, Ed Kleban said that ...

> I need to implement a file interlock in MacOS X so that I don't have more
> than one application.... or more than one instance of that application  that
> are running concurrently trying to open a given file at the same time.  It's
> certainly easy enough for me to create for fileToUse.xxx an interlock file
> named fileToUse.xxx.lock and then delete that .lock file when the
> application using fileToUse.xxx closes stops using it or quits.   But I'm
> concerned about handling the case where the application crashes.

Wouldn't it be better to just use a mutex?

--
Steve Garman
Using REALbasic 2005r4 Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>