Changeset 82f4063 for libcfa/src/bits


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

Location:
libcfa/src/bits
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bits/defs.hfa

    rc65b930 r82f4063  
    3131#ifdef __cforall
    3232#define __cfa_anonymous_object(x) inline struct x
     33#define __cfa_dlink(x) inline dlink(x)
    3334#else
    3435#define __cfa_anonymous_object(x) struct x __cfa_anonymous_object
     36#define __cfa_dlink(x) struct { struct x * next; struct x * back; } __dlink_substitute
    3537#endif
    3638
  • libcfa/src/bits/weakso_locks.hfa

    rc65b930 r82f4063  
    2121#include "bits/sequence.hfa"
    2222#include "bits/containers.hfa"
     23#include "containers/list.hfa"
    2324
    2425struct $thread;
     
    3132
    3233        // List of blocked threads
    33         Sequence( $thread ) blocked_threads;
     34        dlist( $thread ) blocked_threads;
    3435
    3536        // Count of current blocked threads
Note: See TracChangeset for help on using the changeset viewer.