Ignore:
Timestamp:
May 26, 2021, 10:38:19 AM (3 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
bae0d35
Parents:
c65b930
Message:

switched unified locking to use dlist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/invoke.h

    rc65b930 r82f4063  
    2020
    2121#ifdef __cforall
     22#include "containers/list.hfa"
    2223extern "C" {
    2324#endif
     
    196197                } seqable;
    197198
     199                // used to put threads on dlist data structure
     200                __cfa_dlink($thread);
     201
    198202                struct {
    199203                        struct $thread * next;
     
    207211                #endif
    208212        };
     213        #ifdef __cforall
     214                P9_EMBEDDED( $thread, dlink($thread) )
     215        #endif
    209216        // Wrapper for gdb
    210217        struct cfathread_thread_t { struct $thread debug; };
     
    236243
    237244                static inline $thread *& Next( $thread * this ) __attribute__((const)) {
    238                         return this->seqable.next;
     245                                return this->seqable.next;
    239246                }
    240247
Note: See TracChangeset for help on using the changeset viewer.