Changeset e15df4c for src/examples
- Timestamp:
- Jan 24, 2017, 4:50:45 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, resolv-new, with_gc
- Children:
- ad56482
- Parents:
- 2cdf6dc
- Location:
- src/examples
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/thread.c
r2cdf6dc re15df4c 1 #line 1 "thread.c"2 1 #include <fstream> 3 2 #include <kernel> … … 7 6 // Start coroutine routines 8 7 struct MyThread { 9 thread _ht;8 thread t; 10 9 unsigned id; 11 10 unsigned count; … … 46 45 processor p; 47 46 { 48 thread(MyThread) thread1 = { 1u, itterations };49 thread(MyThread) thread2 = { 2u, itterations };47 scoped(MyThread) thread1 = { 1u, itterations }; 48 scoped(MyThread) thread2 = { 2u, itterations }; 50 49 } 51 50 }
Note: See TracChangeset
for help on using the changeset viewer.