To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=54586





------- Additional comments from [EMAIL PROTECTED] Sun Oct 30 19:17:38 -0700 
2005 -------
 jdthompson Sat Oct 29 19:24:20 -0700 2005 -------said:

Are you able to share details of what you did to achive a functioning
file-locking mechanism for the application you developed?

============================================================
Sure. It is in an open source VLSI Design system called Magic.  This
can be downloaed from: http://opencircuitdesign.com/magic/. Click on
Version 7.3.  The code was originally written about 8 years ago. It provides
file locking for designers working on the same database.
The main body of the code is in (after you untar the dowloaded file)
magic/utils/flock.c.  There once was a narrative about the design, but
that does not seem to be present in the current system. flock.c contains a
fair amount of doucmentation, and points to where the rest of the code resides.

I think that a system for OpenOffice.org has much more demanding requirements,
but this code may still be helpful to the thought process.  The code does
deal with the fact that the Magic system, when it opens a new file, reads
the file completely and then closes the file. During the several years that
I was directly involved, the code performed correctly.  As I think of it,
2 areas were not handled as well as should have been:

1. Links are only followed for one level.  This could be generalized, but would
   need to deal with recursive link loops, etc.

2. Stale locks (mostly due to crashes) could be cleared more gracefully. I
   would have fixed this, but no one complained enough.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

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


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

Reply via email to