Changeset 2856982c


Ignore:
Timestamp:
Oct 28, 2022, 3:04:19 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
13edbac
Parents:
28372f7
Message:

Changed implicit dlink field in thread$ to have name uxer_link

Location:
libcfa/src
Files:
2 edited

Legend:

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

    r28372f7 r2856982c  
    3030#ifdef __cforall
    3131#define __cfa_anonymous_object(x) inline struct x
    32 #define __cfa_dlink(x) inline dlink(x)
     32#define __cfa_dlink1(x) dlink(x)
    3333#else
    3434#define __cfa_anonymous_object(x) struct x __cfa_anonymous_object
    35 #define __cfa_dlink(x) struct { struct x * next; struct x * back; } __dlink_substitute
     35#define __cfa_dlink1(x) struct { struct x * next; struct x * back; }
    3636#endif
    3737
  • libcfa/src/concurrency/invoke.h

    r28372f7 r2856982c  
    196196
    197197                // used to put threads on dlist data structure
    198                 __cfa_dlink(thread$);
     198                __cfa_dlink1(thread$) user_link;
    199199
    200200                struct {
     
    218218                #endif
    219219        };
    220         #ifdef __cforall
    221                 P9_EMBEDDED( thread$, dlink(thread$) )
    222         #endif
     220
    223221        // Wrapper for gdb
    224222        struct cfathread_thread_t { struct thread$ debug; };
     
    241239                }
    242240
     241                static inline tytagref( dlink(thread$), dlink(thread$) ) ?`inner( thread$ & this ) {
     242                        dlink(thread$) & b = this.user_link;
     243                        tytagref( dlink(thread$), dlink(thread$) ) result = { b };
     244                        return result;
     245                }
     246
    243247                static inline void ?{}(__monitor_group_t & this) {
    244248                        (this.data){0p};
Note: See TracChangeset for help on using the changeset viewer.