Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/coroutineYield.c

    ref952d7 r7bdcac1  
    55#include <time>
    66
    7 #define __kick_rate 150000ul
    87#include "long_tests.h"
    98
     
    2625void main(Coroutine& this) {
    2726        while(true) {
    28                 #if !defined(TEST_FOREVER)
    29                         sout | "Coroutine 1" | endl;
    30                 #endif
     27                sout | "Coroutine 1" | endl;
    3128                yield();
    32                 #if !defined(TEST_FOREVER)
    33                         sout | "Coroutine 2" | endl;
    34                 #endif
     29                sout | "Coroutine 2" | endl;
    3530                suspend();
    3631        }
     
    4136        Coroutine c;
    4237        for(int i = 0; TEST(i < N); i++) {
    43                 #if !defined(TEST_FOREVER)
    44                         sout | "Thread 1" | endl;
    45                 #endif
     38                sout | "Thread 1" | endl;
    4639                resume(c);
    47                 #if !defined(TEST_FOREVER)
    48                         sout | "Thread 2" | endl;
    49                 #endif
     40                sout | "Thread 2" | endl;
    5041                yield();
    5142                KICK_WATCHDOG;
Note: See TracChangeset for help on using the changeset viewer.