Code examples for ReentrantLock

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
36:	SharedMemoryVertexBufferObject.sSharedByteBufferLock.lock(); 
-
45:	SharedMemoryVertexBufferObject.sSharedByteBufferLock.unlock(); 
Full Snippet Info
9
CodeRank
70:	private final Lock closeLock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
69:	lock.lock(); 
-
75:	lock.unlock(); 
Full Snippet Info
9
CodeRank
28:	private static final Lock STATIC_LOCK = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
20:	lock.lock(); 
-
29:	lock.unlock(); 
Full Snippet Info
8
CodeRank
17:	lock.lock(); 
-
19:	lock.unlock(); 
Full Snippet Info
9
CodeRank
26:	private final Lock lock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
169:	mSurfaceLock.lock(); 
-
203:	Thread.sleep(nextTime-now); 
-
209:	mSurfaceLock.unlock(); 
Full Snippet Info
8
CodeRank
29:	lock.lock(); 
-
34:	lock.unlock(); 
Full Snippet Info
8
CodeRank
106:	reopenLock.lock(); 
-
110:	reopenLock.unlock(); 
Full Snippet Info
9
CodeRank
32:	private final Lock daemonsLock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
10:	ReentrantLock lock = new ReentrantLock(); 
11:	lock.lock(); 
-
15:	lock.unlock(); 
-
17:	return lock.isLocked(); 
Full Snippet Info
7
CodeRank
12:	private ReentrantLock reentrantLock = new ReentrantLock(); 
-
14:	.newCondition(); 
Full Snippet Info
7
CodeRank
32:	private final Lock lock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
51:	this.cachedInputLock.lock(); 
-
61:	this.cachedInputLock.unlock(); 
Full Snippet Info
9
CodeRank
17:	protected ReentrantLock lock = new ReentrantLock(); 
18:	protected Condition requestFinishedCondition = lock.newCondition(); 
Full Snippet Info
7
CodeRank
31:	private final Lock lock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank
55:	lock.lock(); 
-
60:	lock.unlock(); 
Full Snippet Info
9
CodeRank
17:	protected ReentrantLock lock = new ReentrantLock(); 
18:	protected Condition requestFinishedCondition = lock.newCondition(); 
Full Snippet Info
7
CodeRank
33:	private final Lock lock = new ReentrantLock(); 
Full Snippet Info
9
CodeRank