Skip to content

Commit b46fa77

Browse files
committed
reentrantLockTest
1 parent 0e602c2 commit b46fa77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java-redis/src/test/java/org/cp/javaredis/LockTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public void reentrantLockTest() {
5757
lock.lock();
5858
lock.lock();
5959
lock.lock();
60+
System.out.println(lock.getHoldCount());
6061
// do somethings
6162
} finally {
6263
lock.unlock();

0 commit comments

Comments
 (0)