- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
ra1538cd rdddb3dd0 107 107 DLISTED_MGD_IMPL_IN(processor) 108 108 109 // special init fields110 // This is needed for memcached integration111 // once memcached experiments are done this should probably be removed112 // it is not a particularly safe scheme as it can make processors less homogeneous113 struct {114 void (*fnc) (void *);115 void * arg;116 } init;117 118 109 #if !defined(__CFA_NO_STATISTICS__) 119 110 int print_stats; … … 127 118 }; 128 119 129 void ?{}(processor & this, const char name[], struct cluster & cltr , void (*init) (void *), void * arg);120 void ?{}(processor & this, const char name[], struct cluster & cltr); 130 121 void ^?{}(processor & this); 131 122 132 static inline void ?{}(processor & this) { this{ "Anonymous Processor", *mainCluster, 0p, 0p}; }133 static inline void ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr, 0p, 0p}; }134 static inline void ?{}(processor & this, const char name[]) { this{name, *mainCluster, 0p, 0p}; }123 static inline void ?{}(processor & this) { this{ "Anonymous Processor", *mainCluster}; } 124 static inline void ?{}(processor & this, struct cluster & cltr) { this{ "Anonymous Processor", cltr}; } 125 static inline void ?{}(processor & this, const char name[]) { this{name, *mainCluster }; } 135 126 136 127 DLISTED_MGD_IMPL_OUT(processor)
Note:
See TracChangeset
for help on using the changeset viewer.