Changes in src/examples/thread.c [e15df4c:60819df7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/thread.c
re15df4c r60819df7 1 #line 1 "thread.c" 1 2 #include <fstream> 2 3 #include <kernel> … … 6 7 // Start coroutine routines 7 8 struct MyThread { 8 thread t;9 thread_h t; 9 10 unsigned id; 10 11 unsigned count; … … 45 46 processor p; 46 47 { 47 scoped(MyThread) thread1 = { 1u, itterations };48 scoped(MyThread) thread2 = { 2u, itterations };48 thread(MyThread) thread1 = { 1u, itterations }; 49 thread(MyThread) thread2 = { 2u, itterations }; 49 50 } 50 51 }
Note:
See TracChangeset
for help on using the changeset viewer.