commit
ff2c8b4805
@ -95,12 +95,11 @@ abstract class Scheduler extends BindingBase {
|
|||||||
|
|
||||||
SchedulingStrategy schedulingStrategy = new DefaultSchedulingStrategy();
|
SchedulingStrategy schedulingStrategy = new DefaultSchedulingStrategy();
|
||||||
|
|
||||||
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(
|
static int _taskSorter (_TaskEntry e1, _TaskEntry e2) {
|
||||||
(_TaskEntry e1, _TaskEntry e2) {
|
// Note that we inverse the priority.
|
||||||
// Note that we inverse the priority.
|
return -e1.priority.compareTo(e2.priority);
|
||||||
return -e1.priority.compareTo(e2.priority);
|
}
|
||||||
}
|
final PriorityQueue _taskQueue = new HeapPriorityQueue<_TaskEntry>(_taskSorter);
|
||||||
);
|
|
||||||
|
|
||||||
/// Whether this scheduler already requested to be called from the event loop.
|
/// Whether this scheduler already requested to be called from the event loop.
|
||||||
bool _hasRequestedAnEventLoopCallback = false;
|
bool _hasRequestedAnEventLoopCallback = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user