diff options
author | Pixel <pixel@nobis-crew.org> | 2011-10-10 19:36:55 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-10-10 19:36:55 -0700 |
commit | 965148b43b5b859934b7af2e8447ba1026a43a19 (patch) | |
tree | 290ff60cd1ebc9a065109620b2e9a5ff4e5b3d17 /tests/test-Tasks.cc | |
parent | cf9a801ebcb4df0a8b1ea75e58ca8ea8960ba13b (diff) |
Adding the basic "Handle" structure, and adding an early version of Input.
Renamed suspend() to yield().
Fixed a couple of bugs, and reorganized slightly some code.
Diffstat (limited to 'tests/test-Tasks.cc')
-rw-r--r-- | tests/test-Tasks.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc index 148f943..1faa194 100644 --- a/tests/test-Tasks.cc +++ b/tests/test-Tasks.cc @@ -30,13 +30,13 @@ void MainTask::Do() { Events::TaskEvent taskEvt(testTask); waitFor(&taskEvt); Assert(!taskEvt.gotSignal()); - suspend(); + yield(); Assert(taskEvt.gotSignal()); Events::Timeout timeout(0.1); waitFor(&timeout); Assert(!timeout.gotSignal()); - suspend(); + yield(); Assert(timeout.gotSignal()); Printer::log(M_STATUS, "Test::Tasks passed."); |