Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/kernel

    rea7d2b0 r025278e  
    2626//-----------------------------------------------------------------------------
    2727// Locks
    28 // // Lock the spinlock, spin if already acquired
    29 // void lock      ( spinlock * DEBUG_CTX_PARAM2 );
     28// Lock the spinlock, spin if already acquired
     29void lock      ( spinlock * DEBUG_CTX_PARAM2 );
    3030
    31 // // Lock the spinlock, yield repeatedly if already acquired
    32 // void lock_yield( spinlock * DEBUG_CTX_PARAM2 );
     31// Lock the spinlock, yield repeatedly if already acquired
     32void lock_yield( spinlock * DEBUG_CTX_PARAM2 );
    3333
    34 // // Lock the spinlock, return false if already acquired
    35 // bool try_lock  ( spinlock * DEBUG_CTX_PARAM2 );
     34// Lock the spinlock, return false if already acquired
     35bool try_lock  ( spinlock * DEBUG_CTX_PARAM2 );
    3636
    37 // // Unlock the spinlock
    38 // void unlock    ( spinlock * );
     37// Unlock the spinlock
     38void unlock    ( spinlock * );
    3939
    4040struct semaphore {
    41         __spinlock_t lock;
     41        spinlock lock;
    4242        int count;
    4343        __thread_queue_t waiting;
     
    5454struct cluster {
    5555        // Ready queue locks
    56         __spinlock_t ready_queue_lock;
     56        spinlock ready_queue_lock;
    5757
    5858        // Ready queue for threads
     
    7474        FinishOpCode action_code;
    7575        thread_desc * thrd;
    76         __spinlock_t * lock;
    77         __spinlock_t ** locks;
     76        spinlock * lock;
     77        spinlock ** locks;
    7878        unsigned short lock_count;
    7979        thread_desc ** thrds;
Note: See TracChangeset for help on using the changeset viewer.