diff options
| author | Pixel <pixel@nobis-crew.org> | 2012-04-08 22:03:50 -0700 | 
|---|---|---|
| committer | Pixel <pixel@nobis-crew.org> | 2012-04-08 22:03:50 -0700 | 
| commit | cc78db0520ff384892cbee69557a38c3a1b04613 (patch) | |
| tree | 01a05027d0d93d0a1253db56ed506087cc24aedb /tests/test-Tasks.cc | |
| parent | dbf734fcf0ade3d92df31e4f0a7c0a5bd2b5605f (diff) | |
Redifining yielding for operations a bit, making further refinements.
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 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());  } | 
