Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 714 vs 716 for /trunk/Source Code/Platform/Threading/Task.cpp

Diff revisions: vs.
  @@ -58,7 +58,10 @@
58 58
59 59 _done = false;
60 60 _priority = priority;
61 - if (priority != TaskPriority::REALTIME && _tp != nullptr && _tp->workerThreadCount() > 0) {
61 + if (priority != TaskPriority::REALTIME &&
62 + priority != TaskPriority::REALTIME_WITH_CALLBACK &&
63 + _tp != nullptr && _tp->workerThreadCount() > 0)
64 + {
62 65 while (!_tp->threadPool().schedule(PoolTask(to_uint(priority), DELEGATE_BIND(&Task::run, this)))) {
63 66 Console::errorfn(Locale::get(_ID("TASK_SCHEDULE_FAIL")));
64 67 }
  @@ -129,7 +132,7 @@
129 132 }
130 133
131 134 // task finished. Everything else is bookkeeping
132 - _tp->taskCompleted(poolIndex());
135 + _tp->taskCompleted(poolIndex(), _priority);
133 136 }
134 137
135 138 if (_parentTask != nullptr) {