Next: posix lock-pid-files cond, Previous: posix lock-pid-files intro, Up: posix lock-pid-files [Index]
The following bindings are exported by the library (vicare posix
lock-pid-files)
.
Evaluate thunk while a lock PID file has been created and locked; upon returning from the thunk the lock file is closed and deleted. Return the return value of thunk; if thunk raises an exception the lock file is closed and deleted, then the exception raised again in a non–continuable fashion.
Reentering the evaluation of thunk by returning to continuations multiple time causes undefined behaviour.
lock-pathname must be a non–empty string representing the pathname of the lock file.
log must be a procedure accepting format
–like arguments
and logging the resulting string:
(log ?template-string ?arg ...)