Class SafeLockUtil
java.lang.Object
com.pnfsoftware.jeb.util.concurrent.SafeLockUtil
Utility methods for
ISafeLocks.-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddebugVerifyLockRead(ISafeLock lock) Verify that the current thread holds the provided lock for reading or writing.static voidVerify that the current thread holds the provided lock for writing.static voidVerify that the current thread does not hold the provided lock for reading or writing.
-
Method Details
-
debugVerifyNoLockRead
Verify that the current thread does not hold the provided lock for reading or writing.- Parameters:
lock- lock to verify
-
debugVerifyLockRead
Verify that the current thread holds the provided lock for reading or writing.- Parameters:
lock- lock to verify
-
debugVerifyLockWrite
Verify that the current thread holds the provided lock for writing.- Parameters:
lock- lock to verify
-