We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16372ec commit 570a1c3Copy full SHA for 570a1c3
MD/ReentrantLock.md
@@ -64,7 +64,7 @@ ReentrantLock 分为**公平锁**和**非公平锁**,可以通过构造方法
64
if (!tryAcquire(arg) &&
65
acquireQueued(addWaiter(Node.EXCLUSIVE), arg))
66
selfInterrupt();
67
- }
+ }
68
```
69
70
第一步是尝试获取锁(`tryAcquire(arg)`),这个也是由其子类实现:
0 commit comments