Changeset 0322865c for src/tests/preempt_longrun/yield.c
- Timestamp:
- Jul 11, 2017, 3:11:42 PM (8 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:
- f2b12406
- Parents:
- 67f2170
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/preempt_longrun/yield.c
r67f2170 r0322865c 10 10 } 11 11 12 thread Worker{};12 thread worker_t {}; 13 13 14 void main( Worker* this) {14 void main(worker_t * this) { 15 15 for(int i = 0; i < 325_000ul; i++) { 16 16 yield(); … … 18 18 } 19 19 20 extern "C" { 21 static worker_t * workers; 22 } 23 20 24 int main(int argc, char* argv[]) { 21 25 processor p; 22 26 { 23 Worker w[7]; 27 worker_t w[7]; 28 workers = w; 24 29 } 25 30 }
Note: See TracChangeset
for help on using the changeset viewer.