Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/kernel

    r0cf5b79 rcdbfab0  
    2626//-----------------------------------------------------------------------------
    2727// 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
    2840struct semaphore {
    2941        __spinlock_t lock;
    3042        int count;
    31         __queue_t(thread_desc) waiting;
     43        __thread_queue_t waiting;
    3244};
    3345
     
    4557
    4658        // Ready queue for threads
    47         __queue_t(thread_desc) ready_queue;
     59        __thread_queue_t ready_queue;
    4860
    4961        // Preemption rate on this cluster
     
    108120#ifdef __CFA_DEBUG__
    109121        // Last function to enable preemption on this processor
    110         char * last_enable;
     122        const char * last_enable;
    111123#endif
    112124};
Note: See TracChangeset for help on using the changeset viewer.