Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 330 vs 331 for /trunk/Source Code/Hardware/Platform/Task.cpp

Diff revisions: vs.
  @@ -24,6 +24,7 @@
24 24 {
25 25 if (_end != true) {
26 26 ERROR_FN(Locale::get("TASK_DELETE_ACTIVE"));
27 + stopTask();
27 28 }
28 29 while (!_done) {
29 30 }
  @@ -53,12 +54,16 @@
53 54 _numberOfTicks = -1;
54 55 }
55 56
57 + _done = false;
58 +
56 59 while (true) {
57 60 if (_numberOfTicks == 0) {
58 61 _end = true;
59 62 }
60 63
61 - while ((_paused && !_end) || (Application::getInstance().mainLoopPaused() && !Application::getInstance().ShutdownRequested())) {
64 + while ((_paused && !_end) ||
65 + (Application::getInstance().mainLoopPaused() &&
66 + !Application::getInstance().ShutdownRequested())) {
62 67 continue;
63 68 }
64 69 if (_end || Application::getInstance().ShutdownRequested()) {