Ignore:
File:
1 edited

Legend:

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

    ra5e7233 ra1538cd  
    112112        // it is not a particularly safe scheme as it can make processors less homogeneous
    113113        struct {
    114                 $thread * thrd;
     114                void (*fnc) (void *);
     115                void * arg;
    115116        } init;
    116117
     
    126127};
    127128
    128 void  ?{}(processor & this, const char name[], struct cluster & cltr);
     129void  ?{}(processor & this, const char name[], struct cluster & cltr, void (*init) (void *), void * arg);
    129130void ^?{}(processor & this);
    130131
    131 static inline void  ?{}(processor & this)                        { this{ "Anonymous Processor", *mainCluster}; }
    132 static inline void  ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr}; }
    133 static inline void  ?{}(processor & this, const char name[])     { this{name, *mainCluster}; }
     132static inline void  ?{}(processor & this)                        { this{ "Anonymous Processor", *mainCluster, 0p, 0p}; }
     133static inline void  ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr, 0p, 0p}; }
     134static inline void  ?{}(processor & this, const char name[])     { this{name, *mainCluster, 0p, 0p }; }
    134135
    135136DLISTED_MGD_IMPL_OUT(processor)
Note: See TracChangeset for help on using the changeset viewer.