public abstract class AbstractOwnableSynchronizer extends Object implements Serializable
AbstractOwnableSynchronizer
类本身不管理或使用此信息。然而,子类和工具可以使用适当的维护值,以帮助控制和监视访问,并提供诊断。
Modifier | Constructor and Description |
---|---|
protected |
AbstractOwnableSynchronizer()
子类使用的空构造函数。
|
Modifier and Type | Method and Description |
---|---|
protected Thread |
getExclusiveOwnerThread()
返回的
setExclusiveOwnerThread 最后设置线程,或者如果没有
null 。
|
protected void |
setExclusiveOwnerThread(Thread thread)
设置当前拥有独占访问的线程。
|
protected final void setExclusiveOwnerThread(Thread thread)
null
争论表明,没有线程拥有访问。这种方法不会施加任何同步或
volatile
域的访问。
thread
-主线程
protected final Thread getExclusiveOwnerThread()
setExclusiveOwnerThread
最后设置线程,或者如果没有
null
。这种方法不会施加任何同步或
volatile
域的访问。
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.