[Pharo-dev] Is there a Smalltalk way to lock a file?

2014-03-13 Thread Mariano Martinez Peck
Hi guys, Do we have a method to lock a file at the OS level? I searched in image but I cannot find anything. If it would work in gemstone too that would be nice. Thanks! -- Mariano http://marianopeck.wordpress.com

Re: [Pharo-dev] Is there a Smalltalk way to lock a file?

2014-03-13 Thread Sebastian Sastre
On Mar 13, 2014, at 1:14 PM, Mariano Martinez Peck marianop...@gmail.com wrote: Hi guys, Do we have a method to lock a file at the OS level? I searched in image but I cannot find anything. We couldn’t have done airflowing without that feature (which enables horizontal scaling). Take a

Re: [Pharo-dev] Is there a Smalltalk way to lock a file?

2014-03-13 Thread David T. Lewis
Hi Mariano, It is supported directly in OSProcess. See the unit test for examples. Dave Hi guys, Do we have a method to lock a file at the OS level? I searched in image but I cannot find anything. If it would work in gemstone too that would be nice. Thanks! -- Mariano

Re: [Pharo-dev] Is there a Smalltalk way to lock a file?

2014-03-13 Thread David T. Lewis
Hi Mariano, It is supported directly in OSProcess. See the unit test for examples. Dave Sorry, I should have been more clear about this. The classes in the OSProcess package are OSFileLock and OSFileRegionLock, as well as the methods in category 'file locking' of class UnixOSProcessAccessor.