Ignore:
File:
1 edited

Legend:

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

    r7bdcac1 rcb6314e  
    22#include <thread>
    33#include <time>
    4 
    5 #include "long_tests.h"
    64
    75#ifndef PREEMPTION_RATE
     
    1311}
    1412
    15 #ifdef TEST_LONG
     13#ifdef LONG_TEST
    1614static const unsigned long N = 30_000ul;
    1715#else
     
    3230
    3331void main(worker_t & this) {
    34         while(TEST(counter < N)) {
     32        while(counter < N) {
    3533                __cfaabi_check_preemption();
    3634                if( (counter % 7) == this.value ) {
     
    4240                }
    4341                __cfaabi_check_preemption();
    44                 KICK_WATCHDOG;
    4542        }
    4643}
Note: See TracChangeset for help on using the changeset viewer.