Changeset 69914cbc for libcfa/src/concurrency
- Timestamp:
- May 12, 2021, 4:30:27 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:
- e2f601f
- Parents:
- 67b421c
- Location:
- libcfa/src/concurrency
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/alarm.hfa
r67b421c r69914cbc 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
r67b421c r69914cbc 908 908 } 909 909 910 static void crawl_list( cluster * cltr, dlist(processor , processor) & list, unsigned count ) {910 static void crawl_list( cluster * cltr, dlist(processor) & list, unsigned count ) { 911 911 /* paranoid */ verify( cltr->stats ); 912 912 -
libcfa/src/concurrency/kernel.hfa
r67b421c r69914cbc 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 //----------------------------------------------------------------------------- … … 186 185 187 186 // List of idle processors 188 dlist(processor , processor) idles;187 dlist(processor) idles; 189 188 190 189 // List of active processors 191 dlist(processor , processor) actives;190 dlist(processor) actives; 192 191 }; 193 192 -
libcfa/src/concurrency/ready_queue.cfa
r67b421c r69914cbc 554 554 } 555 555 556 static void assign_list(unsigned & value, dlist(processor , processor) & list, unsigned count) {556 static void assign_list(unsigned & value, dlist(processor) & list, unsigned count) { 557 557 processor * it = &list`first; 558 558 for(unsigned i = 0; i < count; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.