Changes in src/tests/thread.c [bd4d011:cb0e6de]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/thread.c
rbd4d011 rcb0e6de 4 4 #include <thread> 5 5 6 // thread First;7 // void main(First* this);6 struct First { thread_desc __thrd; signal_once* lock; }; 7 struct Second { thread_desc __thrd; signal_once* lock; }; 8 8 9 // thread Second; 10 // void main(Second* this); 11 12 thread First { signal_once* lock; }; 13 thread Second { signal_once* lock; }; 9 DECL_THREAD(First); 10 DECL_THREAD(Second); 14 11 15 12 void ?{}( First * this, signal_once* lock ) { this->lock = lock; } 16 13 void ?{}( Second * this, signal_once* lock ) { this->lock = lock; } 14 15 void ^?{}( First * mutex this ) {} 16 void ^?{}( Second * mutex this ) {} 17 17 18 18 void main(First* this) { … … 39 39 processor p; 40 40 { 41 Firstf = { &lock };42 Seconds = { &lock };41 scoped(First) f = { &lock }; 42 scoped(Second) s = { &lock }; 43 43 } 44 44 }
Note:
See TracChangeset
for help on using the changeset viewer.