1
0
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:
幻境云图 2019-01-25 11:32:28 +08:00 committed by GitHub
parent b07cf48107
commit 8e17ecec0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ AQS使用一个int成员变量来表示同步状态通过内置的FIFO队列
private volatile int state;//共享变量使用volatile修饰保证线程可见性 private volatile int state;//共享变量使用volatile修饰保证线程可见性
``` ```
状态信息通过procted类型的getStatesetStatecompareAndSetState进行操作 状态信息通过protected类型的getStatesetStatecompareAndSetState进行操作
```java ```java