Mathias Bauer wrote:

And more over there is no API *below* osl that works on all platforms.
So it's quite unlikely that osl will get such an API.
Really? fcntl() on unx & Mac OS X, http://msdn2.microsoft.com/en-us/library/aa365203.aspx on Win32, what else?

It doesn't work on Win9x. Well, that might be not interesting anymore
nowadays. So you should talk to Hennes Rohling (HRO) wether an advisory
lock API in osl makes sense under these preconditions. If you offered to
implement it I could imagine that you wouldn't face many complaints. :-)

For Win9x we could perhaps try to emulate the locking/unlocking by
reopening the file internally (inside osl's stream abstraction). That
isn't perfect (as you pointed out) but definitely better than having
nothing.


On Win9x you have LockFile instead of LockFileEx. LockFile always locks exclusively though, which means read access to the locked file(-parts) is impossible. At least in the given scenario this doesn't seem to be an issue as reading while the file is locked will probably not happen. Not sure if this constraint speaks against providing it via osl but at least there is file locking available on Win9x.

BTW: Good to hear that somebody is working on the shared workbook functionality! Even if it is not perfect, I'm sure it will be sufficient for small groups. Setting up servers for occasional collaboration tasks is not what people are looking for.

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to