record_locking 0.01 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News record_locking 0.01 (Default branch)
# 1  
Old 02-04-2008
record_locking 0.01 (Default branch)

record_locking uses a variation on the AJAX/Web 2.0 method of asynchronous Javascript Web page updating to maintain the record lock on the server. Opening a record for editing launches a background Javascript process in the user's browser that checks the status of the record lock every 10 seconds. Each status check updates the lock timestamp, confirming that the user is still connected and actively editing the record. Locks are normally released when the user saves the record or navigates to a different screen. If the user fails to properly close/release the record (abandons the record or his browser crashes), locks go stale if not updated for 5 minutes. The next status request or attempt to lock the record will delete or overwrite any stale lock.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
VOP_ADVLOCK(9)						   BSD Kernel Developer's Manual					    VOP_ADVLOCK(9)

NAME
VOP_ADVLOCK -- advisory record locking SYNOPSIS
#include <sys/param.h> #include <sys/vnode.h> #include <sys/fcntl.h> #include <sys/lockf.h> int VOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl, int flags); DESCRIPTION
The arguments are: vp The vnode being manipulated. id The id token which is changing the lock. op The operation to perform (see fcntl(2)). fl Description of the lock. flags One of more of the following: F_RDLCK Shared or read lock. F_UNLCK Unlock. F_WRLCK Exclusive or write lock. F_WAIT Wait until lock is granted. F_FLOCK Use flock(2) semantics for lock. F_POSIX Use POSIX semantics for lock. This entry point manipulates advisory record locks on the file. Most file systems delegate the work for this call to lf_advlock(). RETURN VALUES
Zero is returned on success, otherwise an error is returned. SEE ALSO
fcntl(2), flock(2), vnode(9) AUTHORS
This manual page was written by Doug Rabson. BSD
June 30, 1999 BSD