Checks whether a lock has been obtained.
The lock as an object of type FileLock.
## Not run:
file.lock = lock("~/file.lock")
# Critical section code goes between here and the unlock call
print("Got the lock!")
## End(Not run)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.