summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2012-04-08 22:03:50 -0700
committerPixel <pixel@nobis-crew.org>2012-04-08 22:03:50 -0700
commitcc78db0520ff384892cbee69557a38c3a1b04613 (patch)
tree01a05027d0d93d0a1253db56ed506087cc24aedb /tests
parentdbf734fcf0ade3d92df31e4f0a7c0a5bd2b5605f (diff)
Redifining yielding for operations a bit, making further refinements.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Tasks.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc
index 159b0f6..6bbb503 100644
--- a/tests/test-Tasks.cc
+++ b/tests/test-Tasks.cc
@@ -27,7 +27,7 @@ class TestOperation {
void Do() {
if (m_count++ == 0) {
m_timeout.set(0.2);
- Task::yield(&m_timeout, true);
+ Task::operationYield(&m_timeout, Task::STACKLESS);
}
TAssert(m_timeout.gotSignal());
m_completed = true;
@@ -56,7 +56,7 @@ class TestStackless : public StacklessTask {
static void yieldingFunction() {
Events::Timeout timeout(0.2);
- Task::yield(&timeout);
+ Task::operationYield(&timeout);
TAssert(timeout.gotSignal());
}