Skip to content

Commit 570a1c3

Browse files
committed
重入锁
1 parent 16372ec commit 570a1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MD/ReentrantLock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ReentrantLock 分为**公平锁**和**非公平锁**,可以通过构造方法
6464
if (!tryAcquire(arg) &&
6565
acquireQueued(addWaiter(Node.EXCLUSIVE), arg))
6666
selfInterrupt();
67-
}
67+
}
6868
```
6969

7070
第一步是尝试获取锁(`tryAcquire(arg)`),这个也是由其子类实现:

0 commit comments

Comments
 (0)