On 12/06/2011 11:09 AM, Thiago Macieira wrote:
> On Tuesday, 6 de December de 2011 13.56.18, Jonas Gastal wrote:
>> Sorry if this is a stupid point, but there is a pretty standard mechanism
>> for
>> multiprocess "mutexes" in the form of ".lock" files. Isn't this an obvious
>> and
>> acceptable solution(to that part of the issue)? They have the same up/down
>> sides of actual mutexes.
> 
> Yes, it is, provided you do the lock file operations correctly (which isn't a 
> given).

Right -- that's why Python's lockfile uses link operations on *nix but
mkdirs on Windows. And various mechanisms may or may not work on various
other file system types (FUSE filesystems, various types of networked
filesystems, etc.) It's not an easy task.

--Jeff
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to