Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/concurrent/signal/wait.c

    ref952d7 rb9da9585  
    1212#include <time>
    1313
    14 #define __kick_rate 12000ul
    15 #include "long_tests.h"
    16 
    1714#ifndef PREEMPTION_RATE
    1815#define PREEMPTION_RATE 10`ms
     
    2320}
    2421
    25 #ifdef TEST_LONG
     22#ifdef LONG_TEST
    2623static const unsigned long N = 375_000ul;
    2724#else
     
    9390// Waiter ABC
    9491void main( WaiterABC & this ) {
    95         for( int i = 0; TEST(i < N); i++ ) {
     92        for( int i = 0; i < N; i++ ) {
    9693                wait( condABC, globalA, globalB, globalC );
    97                 KICK_WATCHDOG;
    9894        }
    9995
     
    104100// Waiter AB
    105101void main( WaiterAB & this ) {
    106         for( int i = 0; TEST(i < N); i++ ) {
     102        for( int i = 0; i < N; i++ ) {
    107103                wait( condAB , globalA, globalB );
    108                 KICK_WATCHDOG;
    109104        }
    110105
     
    115110// Waiter AC
    116111void main( WaiterAC & this ) {
    117         for( int i = 0; TEST(i < N); i++ ) {
     112        for( int i = 0; i < N; i++ ) {
    118113                wait( condAC , globalA, globalC );
    119                 KICK_WATCHDOG;
    120114        }
    121115
     
    126120// Waiter BC
    127121void main( WaiterBC & this ) {
    128         for( int i = 0; TEST(i < N); i++ ) {
     122        for( int i = 0; i < N; i++ ) {
    129123                wait( condBC , globalB, globalC );
    130                 KICK_WATCHDOG;
    131124        }
    132125
Note: See TracChangeset for help on using the changeset viewer.