![]() |
![]()
| ![]() |
![]()
NAMEIO::Lambda::Flock - lambda-style file locking DESCRIPTIONThe module provides file locking interface for the lambda style, implemented by using non-blocking, periodic polling of flock(2). SYNOPSISopen LOCK, ">lock"; lambda { # obtain the lock context \*LOCK, timeout => 10; flock { die "can't obtain lock" unless shift } # while reading from handle context $handle; readable { ... } # and showing status context 0.5; timeout { print '.'; again } }; API
SEE ALSOFcntl, IO::Lambda::Poll. AUTHORDmitry Karasik, <dmitry@karasik.eu.org>.
|