- File:
-
- 1 edited
-
src/libcfa/concurrency/thread.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/thread.c
rd67cdb7 r83a071f9 1 // -*- Mode: CFA -*- 1 2 // 2 3 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo … … 9 10 // Author : Thierry Delisle 10 11 // Created On : Tue Jan 17 12:27:26 2017 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Jul 21 22:34:46 201713 // Update Count : 112 // Last Modified By : Thierry Delisle 13 // Last Modified On : -- 14 // Update Count : 0 14 15 // 15 16 … … 33 34 34 35 void ?{}(thread_desc& this) { 35 (this.self_cor){}; 36 this.self_cor.name = "Anonymous Coroutine"; 37 this.self_mon.owner = &this; 38 this.self_mon.recursion = 1; 39 this.self_mon_p = &this.self_mon; 36 (this.cor){}; 37 this.cor.name = "Anonymous Coroutine"; 38 this.mon.owner = &this; 39 this.mon.recursion = 1; 40 40 this.next = NULL; 41 41 42 (this.monitors){ &this.self_mon_p, 1, (fptr_t)0 }; 42 this.current_monitors = &this.mon; 43 this.current_monitor_count = 1; 43 44 } 44 45 45 46 void ^?{}(thread_desc& this) { 46 ^(this. self_cor){};47 ^(this.cor){}; 47 48 } 48 49 … … 86 87 87 88 void yield( void ) { 88 BlockInternal( this_thread );89 BlockInternal( (thread_desc *)this_thread ); 89 90 } 90 91
Note:
See TracChangeset
for help on using the changeset viewer.