- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.hfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r639e4fc r31c967b 64 64 // 1 - means the proc should wake-up immediately 65 65 // FD - means the proc is going asleep and should be woken by writing to the FD. 66 // The FD value should always be the evfd field just below.67 66 volatile int sem; 68 67 … … 70 69 int evfd; 71 70 72 // Used for debugging, should be removed eventually. 71 // buffer into which the proc will read from evfd 72 // unused if not using io_uring for idle sleep 73 void * rdbuf; 74 75 // future use to track the read of the eventfd 76 // unused if not using io_uring for idle sleep 77 io_future_t * ftr; 78 73 79 volatile unsigned long long wake__time; 74 80 volatile unsigned long long sleep_time; … … 154 160 // P9_EMBEDDED( processor, dlink(processor) ) 155 161 static inline tytagref( dlink(processor), dlink(processor) ) ?`inner( processor & this ) { 156 dlink(processor) & b = this.link;157 tytagref( dlink(processor), dlink(processor) ) result = { b };158 return result;162 dlink(processor) & b = this.link; 163 tytagref( dlink(processor), dlink(processor) ) result = { b }; 164 return result; 159 165 } 160 166 … … 250 256 // List of threads 251 257 __spinlock_t thread_list_lock; 252 dlist(struct thread$, struct __thread_user_link) threads;258 __dllist_t(struct thread$) threads; 253 259 unsigned int nthreads; 254 260 … … 263 269 io_context_params params; 264 270 } io; 265 266 struct {267 struct processor ** procs;268 unsigned cnt;269 } managed;270 271 271 272 #if !defined(__CFA_NO_STATISTICS__) … … 297 298 static inline struct cluster * active_cluster () { return publicTLS_get( this_processor )->cltr; } 298 299 299 // set the number of internal processors300 // these processors are in addition to any explicitly declared processors301 unsigned set_concurrency( cluster & this, unsigned new_count );302 303 300 #if !defined(__CFA_NO_STATISTICS__) 304 301 void print_stats_now( cluster & this, int flags );
Note:
See TracChangeset
for help on using the changeset viewer.