Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/preempt_longrun/enter.c

    ref952d7 rb9da9585  
    33#include <thread>
    44#include <time>
    5 
    6 #define __kick_rate 75000ul
    7 #include "long_tests.h"
    85
    96#ifndef PREEMPTION_RATE
     
    1815
    1916monitor mon_t {};
    20 void foo( mon_t & mutex this ) {
    21         KICK_WATCHDOG;
     17
     18mon_t mon;
     19
     20void foo( mon_t & mutex this ) {}
     21
     22thread worker_t {};
     23
     24void main( worker_t & this ) {
     25        for( unsigned long i = 0; i < N; i++ ) {
     26                foo( mon );
     27        }
    2228}
    2329
    24 mon_t mon;
    25 thread worker_t {};
    26 void main( worker_t & this ) {
    27         for( unsigned long i = 0; TEST(i < N); i++ ) {
    28                 foo( mon );
    29         }
     30extern "C" {
     31static worker_t * workers;
    3032}
    3133
     
    3436        {
    3537                worker_t w[7];
     38                workers = w;
    3639        }
    3740}
Note: See TracChangeset for help on using the changeset viewer.