Skip to content

Commit

Permalink
change: no more ExecutorManager#schedulingMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Jul 31, 2024
1 parent f5a525b commit 527dff1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class ExecutorManager {

private final DynamicPriorityQueue<Task> globalWorkQueue;
private final ConcurrentMap<LockToken, FreeableTaskList> lockListeners = new ConcurrentHashMap<>();
private final Object schedulingMutex = new Object();
final Object workerMonitor = new Object();
private final WorkerThread[] workerThreads;

Expand Down Expand Up @@ -164,9 +163,7 @@ private void wakeup() {
}

public boolean hasPendingTasks() {
synchronized (this.schedulingMutex) {
return this.globalWorkQueue.size() != 0;
}
return this.globalWorkQueue.size() != 0;
}

/**
Expand Down

0 comments on commit 527dff1

Please sign in to comment.