Changeset 4c11fce
- Timestamp:
- Mar 8, 2018, 9:33:37 AM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e61de5b
- Parents:
- 87555b7 (diff), 5600747 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/processor.c
r87555b7 r4c11fce 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.