mirror of
https://github.com/cabaletta/baritone
synced 2024-12-17 20:55:09 +00:00
surely this is ok
This commit is contained in:
parent
19b66903d0
commit
3873aae710
@ -228,16 +228,16 @@ public final class NetherPathfinderContext {
|
||||
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user