队列同步器AbstractQueuedSynchronizer,是用来构建锁或者其他同步组件的基础框架。
继承AbstractOwnableSynchronizer
用一个int成员变量表示同步状态
设置当前状态
/**
* Sets the value of synchronization state.
* This operation has memory semantics of a {@code volatile} write.
* @param newState the new state value
*/
protected final void setState(int newState)