We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b110dcf commit 6326ef2Copy full SHA for 6326ef2
1 file changed
README.md
@@ -1,4 +1,3 @@
1
-<p align="center">
2
<img src="https://images.gitee.com/uploads/images/2020/1022/231243_f2ae30da_2071767.png" width="229" height="210" alt="Icon"/>
3
4
# PDConcurrent
@@ -33,7 +32,7 @@ public static
33
32
void main(String[] args) {
34
lock.read(() -> {
35
// 并发域代码内容
36
- [return null;]? // 可选择是否返回
+ return null; // 可选择是否返回
37
});
38
}
39
```
@@ -56,11 +55,13 @@ void main(String[] args) {
56
55
// 使用
57
58
+ return null;
59
60
61
// 不使用
62
- synchronized ( new Object() ){
+ synchronized ( lock ){
63
64
65
66
67
@@ -70,8 +71,6 @@ void main(String[] args) {
70
71
72
支持使用`newCondition()`获取`Condition`对象
73
-支持通过`isLocked()`检查是否被占用
74
-
75
```java
76
public static
77
0 commit comments