Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/kernel

    rde6319f r0f56058  
    4848        __queue_t(thread_desc) ready_queue;
    4949
    50         // Name of the cluster
    51         const char * name;
    52 
    5350        // Preemption rate on this cluster
    5451        Duration preemption_rate;
    5552};
    5653
    57 extern struct cluster * mainCluster;
    5854extern Duration default_preemption();
    5955
    60 void ?{} (cluster & this, const char * name, Duration preemption_rate);
     56void ?{} (cluster & this);
    6157void ^?{}(cluster & this);
    62 
    63 static inline void ?{} (cluster & this)                           { this{"Anonymous Cluster", default_preemption()}; }
    64 static inline void ?{} (cluster & this, Duration preemption_rate) { this{"Anonymous Cluster", preemption_rate}; }
    65 static inline void ?{} (cluster & this, const char * name)        { this{name, default_preemption()}; }
    6658
    6759//-----------------------------------------------------------------------------
     
    10092        cluster * cltr;
    10193
    102         // Name of the processor
    103         const char * name;
    104 
    10594        // Handle to pthreads
    10695        pthread_t kernel_thread;
     
    130119};
    131120
    132 void  ?{}(processor & this, const char * name, cluster & cltr);
     121void  ?{}(processor & this);
     122void  ?{}(processor & this, cluster * cltr);
    133123void ^?{}(processor & this);
    134 
    135 static inline void  ?{}(processor & this)                    { this{ "Anonymous Processor", *mainCluster}; }
    136 static inline void  ?{}(processor & this, cluster & cltr)    { this{ "Anonymous Processor", cltr}; }
    137 static inline void  ?{}(processor & this, const char * name) { this{name, *mainCluster }; }
    138124
    139125// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.