Changes in / [fb11446e:5600747]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
rfb11446e r5600747 12 12 } 13 13 14 thread worker_t {};15 16 void main(worker_t & this) {}17 18 extern processor * mainProcessor;19 extern thread_desc * mainThread;20 21 14 int 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(); 26 24 } 27 25 }
Note: See TracChangeset
for help on using the changeset viewer.