Changeset e2f601f for libcfa/src/concurrency
- Timestamp:
- May 13, 2021, 3:49:30 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- aff7e86, c457dc41
- Parents:
- 8cd5434 (diff), 69914cbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- libcfa/src/concurrency
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/alarm.hfa
r8cd5434 re2f601f 49 49 Duration period; // if > 0 => period of alarm 50 50 51 DLISTED_MGD_IMPL_IN(alarm_node_t)51 inline dlink(alarm_node_t); 52 52 53 53 union { … … 60 60 enum alarm_type type; // true if this is not a user defined alarm 61 61 }; 62 DLISTED_MGD_IMPL_OUT(alarm_node_t)62 P9_EMBEDDED( alarm_node_t, dlink(alarm_node_t) ) 63 63 64 64 void ?{}( alarm_node_t & this, $thread * thrd, Time alarm, Duration period ); … … 67 67 void ^?{}( alarm_node_t & this ); 68 68 69 typedef dlist(alarm_node_t , alarm_node_t) alarm_list_t;69 typedef dlist(alarm_node_t) alarm_list_t; 70 70 71 71 void insert( alarm_list_t * this, alarm_node_t * n ); -
libcfa/src/concurrency/kernel.cfa
r8cd5434 re2f601f 903 903 } 904 904 905 static void crawl_list( cluster * cltr, dlist(processor , processor) & list, unsigned count ) {905 static void crawl_list( cluster * cltr, dlist(processor) & list, unsigned count ) { 906 906 /* paranoid */ verify( cltr->stats ); 907 907 -
libcfa/src/concurrency/kernel.hfa
r8cd5434 re2f601f 107 107 108 108 // Link lists fields 109 DLISTED_MGD_IMPL_IN(processor)109 inline dlink(processor); 110 110 111 111 // special init fields … … 129 129 #endif 130 130 }; 131 P9_EMBEDDED( processor, dlink(processor) ) 131 132 132 133 void ?{}(processor & this, const char name[], struct cluster & cltr); … … 136 137 static inline void ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr}; } 137 138 static inline void ?{}(processor & this, const char name[]) { this{name, *mainCluster}; } 138 139 DLISTED_MGD_IMPL_OUT(processor)140 139 141 140 //----------------------------------------------------------------------------- … … 192 191 193 192 // List of idle processors 194 dlist(processor , processor) idles;193 dlist(processor) idles; 195 194 196 195 // List of active processors 197 dlist(processor , processor) actives;196 dlist(processor) actives; 198 197 }; 199 198 -
libcfa/src/concurrency/ready_queue.cfa
r8cd5434 re2f601f 552 552 } 553 553 554 static void assign_list(unsigned & value, dlist(processor , processor) & list, unsigned count) {554 static void assign_list(unsigned & value, dlist(processor) & list, unsigned count) { 555 555 processor * it = &list`first; 556 556 for(unsigned i = 0; i < count; i++) {
Note: See TracChangeset
for help on using the changeset viewer.