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