Ignore:
Timestamp:
May 13, 2021, 3:49:30 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
libcfa/src/concurrency
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/alarm.hfa

    r8cd5434 re2f601f  
    4949        Duration period;                        // if > 0 => period of alarm
    5050
    51         DLISTED_MGD_IMPL_IN(alarm_node_t)
     51        inline dlink(alarm_node_t);
    5252
    5353        union {
     
    6060        enum alarm_type type;           // true if this is not a user defined alarm
    6161};
    62 DLISTED_MGD_IMPL_OUT(alarm_node_t)
     62P9_EMBEDDED( alarm_node_t, dlink(alarm_node_t) )
    6363
    6464void ?{}( alarm_node_t & this, $thread * thrd, Time alarm, Duration period );
     
    6767void ^?{}( alarm_node_t & this );
    6868
    69 typedef dlist(alarm_node_t, alarm_node_t) alarm_list_t;
     69typedef dlist(alarm_node_t) alarm_list_t;
    7070
    7171void insert( alarm_list_t * this, alarm_node_t * n );
  • libcfa/src/concurrency/kernel.cfa

    r8cd5434 re2f601f  
    903903        }
    904904
    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 ) {
    906906                /* paranoid */ verify( cltr->stats );
    907907
  • libcfa/src/concurrency/kernel.hfa

    r8cd5434 re2f601f  
    107107
    108108        // Link lists fields
    109         DLISTED_MGD_IMPL_IN(processor)
     109        inline dlink(processor);
    110110
    111111        // special init fields
     
    129129#endif
    130130};
     131P9_EMBEDDED( processor, dlink(processor) )
    131132
    132133void  ?{}(processor & this, const char name[], struct cluster & cltr);
     
    136137static inline void  ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr}; }
    137138static inline void  ?{}(processor & this, const char name[])     { this{name, *mainCluster}; }
    138 
    139 DLISTED_MGD_IMPL_OUT(processor)
    140139
    141140//-----------------------------------------------------------------------------
     
    192191
    193192        // List of idle processors
    194         dlist(processor, processor) idles;
     193        dlist(processor) idles;
    195194
    196195        // List of active processors
    197         dlist(processor, processor) actives;
     196        dlist(processor) actives;
    198197};
    199198
  • libcfa/src/concurrency/ready_queue.cfa

    r8cd5434 re2f601f  
    552552}
    553553
    554 static void assign_list(unsigned & value, dlist(processor, processor) & list, unsigned count) {
     554static void assign_list(unsigned & value, dlist(processor) & list, unsigned count) {
    555555        processor * it = &list`first;
    556556        for(unsigned i = 0; i < count; i++) {
Note: See TracChangeset for help on using the changeset viewer.