Changes in src/examples/thread.c [60819df7:e15df4c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/thread.c
r60819df7 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.