Make the TaskQueue big lock fair

This commit is contained in:
Charles Allen 2015-12-01 19:13:07 -08:00
parent d93640bfcb
commit dbaaa6af92
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class TaskQueue
private final TaskLockbox taskLockbox;
private final ServiceEmitter emitter;
private final ReentrantLock giant = new ReentrantLock();
private final ReentrantLock giant = new ReentrantLock(true);
private final Condition managementMayBeNecessary = giant.newCondition();
private final ExecutorService managerExec = Executors.newSingleThreadExecutor(
new ThreadFactoryBuilder()