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