Changes in src/libcfa/concurrency/kernel [de6319f:0f56058]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel
rde6319f r0f56058 48 48 __queue_t(thread_desc) ready_queue; 49 49 50 // Name of the cluster51 const char * name;52 53 50 // Preemption rate on this cluster 54 51 Duration preemption_rate; 55 52 }; 56 53 57 extern struct cluster * mainCluster;58 54 extern Duration default_preemption(); 59 55 60 void ?{} (cluster & this , const char * name, Duration preemption_rate);56 void ?{} (cluster & this); 61 57 void ^?{}(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()}; }66 58 67 59 //----------------------------------------------------------------------------- … … 100 92 cluster * cltr; 101 93 102 // Name of the processor103 const char * name;104 105 94 // Handle to pthreads 106 95 pthread_t kernel_thread; … … 130 119 }; 131 120 132 void ?{}(processor & this, const char * name, cluster & cltr); 121 void ?{}(processor & this); 122 void ?{}(processor & this, cluster * cltr); 133 123 void ^?{}(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 }; }138 124 139 125 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.