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