Skip to content

Commit

Permalink
surely this is ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Jul 17, 2023
1 parent 19b6690 commit 3873aae
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,16 @@ private static void writeChunkData(Chunk chunk, long ptr) {

private static final class WorkQueue extends TrollBlockingQueue<Runnable> {

private final ConcurrentLinkedDeque<Runnable> path;
private final ConcurrentLinkedDeque<Runnable> chunk;
private final LinkedList<Runnable> path;
private final LinkedList<Runnable> chunk;

private final ReentrantLock takeLock = new ReentrantLock();
private final ReentrantLock putLock = new ReentrantLock();
private final Condition notEmpty = takeLock.newCondition();

public WorkQueue() {
this.path = new ConcurrentLinkedDeque<>();
this.chunk = new ConcurrentLinkedDeque<>();
this.path = new LinkedList<>();
this.chunk = new LinkedList<>();
}

private void signalNotEmpty() {
Expand Down

0 comments on commit 3873aae

Please sign in to comment.