mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-20 22:17:09 +08:00
Update AQS.md
fix 错别字
This commit is contained in:
parent
b07cf48107
commit
8e17ecec0d
@ -58,7 +58,7 @@ AQS使用一个int成员变量来表示同步状态,通过内置的FIFO队列
|
|||||||
private volatile int state;//共享变量,使用volatile修饰保证线程可见性
|
private volatile int state;//共享变量,使用volatile修饰保证线程可见性
|
||||||
```
|
```
|
||||||
|
|
||||||
状态信息通过procted类型的getState,setState,compareAndSetState进行操作
|
状态信息通过protected类型的getState,setState,compareAndSetState进行操作
|
||||||
|
|
||||||
```java
|
```java
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user