Removing call-with-locked-file for now.

This commit is contained in:
Alex Shinn 2014-03-21 14:42:30 +09:00
parent 99f7f3288b
commit d7a8ff0a76
2 changed files with 0 additions and 10 deletions

View file

@ -106,15 +106,6 @@
thunk
(lambda () (change-directory pwd)))))
;;> Calls \var{proc} on a read/write opened file descriptor for
;;> \var{path}, locked with \scheme{file-lock}, and automatically
;;> removes the lock when \var{proc} returns the first time.
(define (call-with-locked-file path proc)
(let ((fd (open path open/read-write)))
(file-lock fd lock/exclusive)
(exception-protect (proc fd) (file-lock fd lock/unlock))))
;;> Returns the \scheme{status} object for the given \var{file},
;;> which should be a string indicating the path or a file
;;> descriptor.

View file

@ -31,7 +31,6 @@
open/create open/exclusive open/truncate
open/append open/non-block
file-lock file-truncate
call-with-locked-file
lock/shared lock/exclusive lock/non-blocking lock/unlock
is-a-tty?)
(import (chibi) (chibi string))