软件包 | 描述 |
---|---|
java.util.concurrent.locks |
接口和类提供了一个锁定和等待条件的框架,这种情况与内置的同步和监视器不同。
|
Modifier and Type | Class and Description |
---|---|
class |
ReentrantReadWriteLock
ReadWriteLock 支持类似的语义
ReentrantLock 实现。
|
Modifier and Type | Method and Description |
---|---|
ReadWriteLock |
StampedLock.asReadWriteLock()
返回该stampedlock,
readLock() 方法映射到一个
ReadWriteLock
StampedLock.asReadLock() 来看,和
writeLock() 到
StampedLock.asWriteLock() 。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.