Changes in src/libcfa/concurrency/kernel [0cf5b79:cdbfab0]
- File:
-
- 1 edited
-
src/libcfa/concurrency/kernel (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel
r0cf5b79 rcdbfab0 26 26 //----------------------------------------------------------------------------- 27 27 // Locks 28 // // Lock the spinlock, spin if already acquired 29 // void lock ( spinlock * DEBUG_CTX_PARAM2 ); 30 31 // // Lock the spinlock, yield repeatedly if already acquired 32 // void lock_yield( spinlock * DEBUG_CTX_PARAM2 ); 33 34 // // Lock the spinlock, return false if already acquired 35 // bool try_lock ( spinlock * DEBUG_CTX_PARAM2 ); 36 37 // // Unlock the spinlock 38 // void unlock ( spinlock * ); 39 28 40 struct semaphore { 29 41 __spinlock_t lock; 30 42 int count; 31 __ queue_t(thread_desc)waiting;43 __thread_queue_t waiting; 32 44 }; 33 45 … … 45 57 46 58 // Ready queue for threads 47 __ queue_t(thread_desc)ready_queue;59 __thread_queue_t ready_queue; 48 60 49 61 // Preemption rate on this cluster … … 108 120 #ifdef __CFA_DEBUG__ 109 121 // Last function to enable preemption on this processor 110 c har * last_enable;122 const char * last_enable; 111 123 #endif 112 124 };
Note:
See TracChangeset
for help on using the changeset viewer.