Changes in src/libcfa/concurrency/thread.c [348006f:17af7d1]
- File:
-
- 1 edited
-
src/libcfa/concurrency/thread.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread.c
r348006f r17af7d1 42 42 43 43 void ?{}(thread_desc* this) { 44 (&this->c ){};45 this->c .name = "Anonymous Coroutine";44 (&this->cor){}; 45 this->cor.name = "Anonymous Coroutine"; 46 46 (&this->terminated){}; 47 47 this->next = NULL; … … 49 49 50 50 void ^?{}(thread_desc* this) { 51 ^(&this->c ){};51 ^(&this->cor){}; 52 52 } 53 53 … … 64 64 } 65 65 66 forall( dtype T | sized(T) | is_thread(T) | { void ^?{}(T*); })66 forall( dtype T | sized(T) | is_thread(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 .state = Halted;122 this->cor.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.