Ignore:
File:
1 edited

Legend:

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

    r639e4fc r31c967b  
    6464        // 1 - means the proc should wake-up immediately
    6565        // FD - means the proc is going asleep and should be woken by writing to the FD.
    66         //      The FD value should always be the evfd field just below.
    6766        volatile int sem;
    6867
     
    7069        int evfd;
    7170
    72         // Used for debugging, should be removed eventually.
     71        // buffer into which the proc will read from evfd
     72        // unused if not using io_uring for idle sleep
     73        void * rdbuf;
     74
     75        // future use to track the read of the eventfd
     76        // unused if not using io_uring for idle sleep
     77        io_future_t * ftr;
     78
    7379        volatile unsigned long long wake__time;
    7480        volatile unsigned long long sleep_time;
     
    154160// P9_EMBEDDED( processor, dlink(processor) )
    155161static inline tytagref( dlink(processor), dlink(processor) ) ?`inner( processor & this ) {
    156         dlink(processor) & b = this.link;
    157         tytagref( dlink(processor), dlink(processor) ) result = { b };
    158         return result;
     162    dlink(processor) & b = this.link;
     163    tytagref( dlink(processor), dlink(processor) ) result = { b };
     164    return result;
    159165}
    160166
     
    250256        // List of threads
    251257        __spinlock_t thread_list_lock;
    252         dlist(struct thread$, struct __thread_user_link) threads;
     258        __dllist_t(struct thread$) threads;
    253259        unsigned int nthreads;
    254260
     
    263269                io_context_params params;
    264270        } io;
    265 
    266         struct {
    267                 struct processor ** procs;
    268                 unsigned cnt;
    269         } managed;
    270271
    271272        #if !defined(__CFA_NO_STATISTICS__)
     
    297298static inline struct cluster   * active_cluster  () { return publicTLS_get( this_processor )->cltr; }
    298299
    299 // set the number of internal processors
    300 // these processors are in addition to any explicitly declared processors
    301 unsigned set_concurrency( cluster & this, unsigned new_count );
    302 
    303300#if !defined(__CFA_NO_STATISTICS__)
    304301        void print_stats_now( cluster & this, int flags );
Note: See TracChangeset for help on using the changeset viewer.