Hi,

Please is it possible to lock a document for access of concurrent instances of 
OOo?  I mean the scenario when the document is on a NFS share (read/write), 
and more users opened it concurrently from their OOo.  I'm working on shared 
workbook functionality, 
http://www.openoffice.org/issues/show_bug.cgi?id=8811, and I need to do 
something like (pseudo-code):

void Save( document ) {
    lock( document );
    do {
        conflict = merge_recent_changes_with_the_already_saved( document );
        if ( conflict ) {
            unlock( document );
            ask_user_to_resolve_the_conflict();
            lock( document );
        }
    } while ( conflict );
    perform_save( document );
    unlock( document );
}

The lock()/unlock() here would prevent the other OOo instances from changing 
the document while one of the instances works.  Please, does a functionality 
like this already exist in OOo?  I would prefer not to reinvent the wheel ;-)

Thank you,
Jan

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

Reply via email to