Description Usage Arguments Value Note
Access to the backing store lock is attempted until successfully obtained.
1 2 3 4 5 6 7 8 9 10 11 | lock_init(fname_lock, id)
check_lock_content(lock)
remove_lock(lock)
unlock_access(lock)
lock_attempt(lock)
lock_access(lock, verbose = FALSE, seed = NA)
|
fname_lock |
A character string. Path to locking directory. |
id |
A R object. Identifier used to test unique write access in locking directory. |
lock |
An object of class |
verbose |
A logical value. If |
seed |
A seed set, |
An object of class SFSW2_lock
.
A logical value. TRUE
if lock file contains proper code of the
lock.
The return value of deleting the directory associated with
lock
.
The updated lock
object of class SFSW2_lock
.
The updated lock
object of class SFSW2_lock
.
The updated lock
object of class SFSW2_lock
.
My attempts at using lock/unlock functions from flock
failed because unlock appeared to not free resources. My attempts at using
such functions from synchronicity failed because of segfaults with
GetResourceName(m@mutexInfoAddr)
; additionally, synchronicity
is restricted to unix systems. Instead, I use here ideas based on functions
from Rdsm and Samuel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.