val lock_exn : lock_path:string -> [ `We_took_it of t | `Somebody_else_took_it ]
Raises an exception if the mkdir
system call fails for any reason other than EEXIST
.
val unlock_exn : t -> unit
Raises an exception if the rmdir
system call fails.