UnixOperatingSystem.st
changeset 20125 ae67288913e3
parent 20103 f9b00623bef2
child 20131 4118d61ddba0
child 20257 bf95d404e329
equal deleted inserted replaced
20124:ae0aa60493c9 20125:ae67288913e3
  4517     (on some systems, locks are mandatory, on others, they are advisory).
  4517     (on some systems, locks are mandatory, on others, they are advisory).
  4518     The isSharedReadLock argument (if true) specifies if multiple readers
  4518     The isSharedReadLock argument (if true) specifies if multiple readers
  4519     are to be allowed - if false, they are not.
  4519     are to be allowed - if false, they are not.
  4520     On some systems, all locks are non-exclusive locks.
  4520     On some systems, all locks are non-exclusive locks.
  4521 
  4521 
  4522     Returns true, if the lock was aquired, false otherwise.
  4522     Returns true, if the lock was acquired, false otherwise.
  4523 
  4523 
  4524     Notice, that not all OS's support these locks;
  4524     Notice, that not all OS's support these locks;
  4525     on some, this may simply be a no-op.
  4525     on some, this may simply be a no-op.
  4526     Also notice, that some systems block the process, to wait for the lock.
  4526     Also notice, that some systems block the process, to wait for the lock.
  4527     This can (again: on some systems) be avoided by passing a false blockIfLocked
  4527     This can (again: on some systems) be avoided by passing a false blockIfLocked
  4672     "
  4672     "
  4673 !
  4673 !
  4674 
  4674 
  4675 unlockFD:aFileDescriptor
  4675 unlockFD:aFileDescriptor
  4676     "clear a file lock on the file represented by aFileDescriptor,
  4676     "clear a file lock on the file represented by aFileDescriptor,
  4677      which was previously aquired by #lockFD:.
  4677      which was previously acquired by #lockFD:.
  4678      Return false, if the unlock failed
  4678      Return false, if the unlock failed
  4679      (which may happens when a wrong fd is passed,
  4679      (which may happens when a wrong fd is passed,
  4680       no lock was set previously, or the systsem does not support locks).
  4680       no lock was set previously, or the systsem does not support locks).
  4681      Notice, that not all OS's support file locks;
  4681      Notice, that not all OS's support file locks;
  4682      on some, this may simply be a no-op."
  4682      on some, this may simply be a no-op."