ReentrantLock.lock()
2021-11-22 15:59:13 5 举报
不是很严谨,可供参考
作者其他创作
大纲/内容
fault
true
tryAcquire(arg)
setExclusiveOwnerThread(Thread current)
setState(nextc)
interrupt()
p == head && tryAcquire(arg)
addWaiter(Node mode)
acquire(int arg)
hasQueuedPredecessors()
ReentrantLock
Thread
selfInterrupt()
lock()
getState() == 0
AbstractQueuedSynchronizer
current == getExclusiveOwnerThread()
收藏
0 条评论
下一页