Package org.basex.core.locks
Class LockQueue
java.lang.Object
org.basex.core.locks.LockQueue
- Direct Known Subclasses:
FairLockQueue,NonfairLockQueue
Lock queue.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Method Summary
-
Field Details
-
parallel
protected final int parallelMaximum number of parallel jobs. -
jobs
protected int jobsNumber of currently running jobs.
-
-
Method Details
-
acquire
Queues the job until it can be started.- Parameters:
id- job idread- read flagwrite- write flag- Throws:
InterruptedException- interrupted exception
-
release
public void release()Notifies other jobs that a job has been completed.
-