Changes in / [87555b7:4c11fce]


Ignore:
File:
1 edited

Legend:

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

    r87555b7 r4c11fce  
    1212}
    1313
    14 thread worker_t {};
    15 
    16 void main(worker_t & this) {}
    17 
    18 extern processor *   mainProcessor;
    19 extern thread_desc * mainThread;
    20 
    2114int main(int argc, char* argv[]) {
    22         for(int i = 0; i < N; i++) {
    23                 assert(this_processor == mainProcessor);
    24                 assert(this_thread == mainThread);
    25                 processor p;
     15        processor * p[15];
     16        for ( int pi = 0; pi < 15; pi++ ) {
     17                p[pi] = new();
     18        }
     19        for ( int i = 0; i < N; i++) {
     20                int pi = i % 15;
     21                for ( volatile int j = 0; j < 10000; j++ );
     22                delete( p[pi] );
     23                p[pi] = new();
    2624        }
    2725}
Note: See TracChangeset for help on using the changeset viewer.