Ignore:
File:
1 edited

Legend:

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

    r7bdcac1 rb9da9585  
    44#include <thread>
    55#include <time>
    6 
    7 #include "long_tests.h"
    86
    97#ifndef PREEMPTION_RATE
     
    1513}
    1614
    17 #ifdef TEST_LONG
     15#ifdef LONG_TEST
    1816static const unsigned long N = 600_000ul;
    1917#else
     
    3533int main(int argc, char* argv[]) {
    3634        Coroutine c;
    37         for(int i = 0; TEST(i < N); i++) {
     35        for(int i = 0; i < N; i++) {
    3836                sout | "Thread 1" | endl;
    3937                resume(c);
    4038                sout | "Thread 2" | endl;
    4139                yield();
    42                 KICK_WATCHDOG;
    4340        }
    4441}
Note: See TracChangeset for help on using the changeset viewer.