file locking primitive

David Gorisek david at
Sat Jan 3 17:43:16 UTC 2004

Regarding file locking primitives, there is also another issue that has
to be taken into account.

On Unix when the same process locks the same file region twice, the
second call will succeed.

On Windows the second call will fail, becuase the file region is already

For true interoperability the file locking behavior should be the same
across various OSs.

OmniBase expects that file locking behavior is the same as on Windows.
Therefore for Unix systems OmniBase currently implements its own
internal file locking table so that locking behavior of the
ODBFileStream is the same as on Windows.


David Gorisek

More information about the Squeak-dev mailing list