Changes in src/libcfa/concurrency/thread.c [17af7d1:348006f]
- File:
-
- 1 edited
-
src/libcfa/concurrency/thread.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread.c
r17af7d1 r348006f 42 42 43 43 void ?{}(thread_desc* this) { 44 (&this->c or){};45 this->c or.name = "Anonymous Coroutine";44 (&this->c){}; 45 this->c.name = "Anonymous Coroutine"; 46 46 (&this->terminated){}; 47 47 this->next = NULL; … … 49 49 50 50 void ^?{}(thread_desc* this) { 51 ^(&this->c or){};51 ^(&this->c){}; 52 52 } 53 53 … … 64 64 } 65 65 66 forall( dtype T | sized(T) | is_thread(T) )66 forall( dtype T | sized(T) | is_thread(T) | { void ^?{}(T*); } ) 67 67 void ^?{}( scoped(T)* this ) { 68 68 stop(&this->handle); … … 120 120 extern "C" { 121 121 void __thread_signal_termination( thread_desc * this ) { 122 this->c or.state = Halted;122 this->c.state = Halted; 123 123 LIB_DEBUG_PRINTF("Thread end : %p\n", this); 124 124 signal( &this->terminated );
Note:
See TracChangeset
for help on using the changeset viewer.