Changeset 7b28e4a for src/tests/preempt_longrun/processor.c
- Timestamp:
- Jun 8, 2018, 1:40:52 PM (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, with_gc
- Children:
- 332d3c2, 9c32e21
- Parents:
- 90cedbdd (diff), beefc34c (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
r90cedbdd r7b28e4a 13 13 } 14 14 15 static const unsigned long N = 5 _000ul;15 static const unsigned long N = 50_000ul; 16 16 17 17 int main(int argc, char* argv[]) { 18 18 processor * p[15]; 19 write(STD ERR_FILENO, "Preparing\n", sizeof("Preparing\n"));19 write(STDOUT_FILENO, "Preparing\n", sizeof("Preparing\n")); 20 20 for ( int pi = 0; pi < 15; pi++ ) { 21 21 p[pi] = new(); 22 22 } 23 write(STD ERR_FILENO, "Starting\n", sizeof("Starting\n"));23 write(STDOUT_FILENO, "Starting\n", sizeof("Starting\n")); 24 24 for ( int i = 0; i < N; i++) { 25 25 int pi = i % 15; … … 27 27 p[pi] = new(); 28 28 } 29 write(STD ERR_FILENO, "Stopping\n", sizeof("Stopping\n"));29 write(STDOUT_FILENO, "Stopping\n", sizeof("Stopping\n")); 30 30 for ( int pi = 0; pi < 15; pi++ ) { 31 31 delete( p[pi] ); 32 32 } 33 write(STD ERR_FILENO, "Done\n", sizeof("Done\n"));33 write(STDOUT_FILENO, "Done\n", sizeof("Done\n")); 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.