From cc78db0520ff384892cbee69557a38c3a1b04613 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sun, 8 Apr 2012 22:03:50 -0700 Subject: Redifining yielding for operations a bit, making further refinements. --- tests/test-Tasks.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test-Tasks.cc') 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()); } -- cgit v1.2.3