Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/locks.hfa

    r6a8882c rf4e35326  
    4949//// Blocking Locks
    5050///////////////////////////////////////////////////////////////////
    51 
    5251struct blocking_lock {
    5352        // Spin lock used for mutual exclusion
     
    7372};
    7473
    75 struct single_acquisition_lock {
     74struct mutex_lock {
    7675        inline blocking_lock;
    7776};
     
    8180};
    8281
    83 struct multiple_acquisition_lock {
     82struct recursive_mutex_lock {
    8483        inline blocking_lock;
    8584};
     
    8887void ^?{}( blocking_lock & this );
    8988
    90 void ?{}( single_acquisition_lock & this );
    91 void ^?{}( single_acquisition_lock & this );
     89void ?{}( mutex_lock & this );
     90void ^?{}( mutex_lock & this );
    9291
    9392void ?{}( owner_lock & this );
    9493void ^?{}( owner_lock & this );
    9594
    96 void ?{}( multiple_acquisition_lock & this );
    97 void ^?{}( multiple_acquisition_lock & this );
     95void ?{}( recursive_mutex_lock & this );
     96void ^?{}( recursive_mutex_lock & this );
    9897
    9998void lock( blocking_lock & this );
     
    106105size_t get_recursion_count( blocking_lock & this );
    107106
    108 void lock( single_acquisition_lock & this );
    109 void unlock( single_acquisition_lock & this );
    110 void add_( single_acquisition_lock & this, struct $thread * t );
    111 void remove_( single_acquisition_lock & this );
    112 void set_recursion_count( single_acquisition_lock & this, size_t recursion );
    113 size_t get_recursion_count( single_acquisition_lock & this );
     107void lock( mutex_lock & this );
     108void unlock( mutex_lock & this );
     109void add_( mutex_lock & this, struct $thread * t );
     110void remove_( mutex_lock & this );
     111void set_recursion_count( mutex_lock & this, size_t recursion );
     112size_t get_recursion_count( mutex_lock & this );
    114113
    115 void lock( owner_lock & this );
    116 void unlock( owner_lock & this );
    117 void add_( owner_lock & this, struct $thread * t );
    118 void remove_( owner_lock & this );
    119 void set_recursion_count( owner_lock & this, size_t recursion );
    120 size_t get_recursion_count( owner_lock & this );
    121 
    122 void lock( multiple_acquisition_lock & this );
    123 void unlock( multiple_acquisition_lock & this );
    124 void add_( multiple_acquisition_lock & this, struct $thread * t );
    125 void remove_( multiple_acquisition_lock & this );
    126 void set_recursion_count( multiple_acquisition_lock & this, size_t recursion );
    127 size_t get_recursion_count( multiple_acquisition_lock & this );
     114void lock( recursive_mutex_lock & this );
     115void unlock( recursive_mutex_lock & this );
     116void add_( recursive_mutex_lock & this, struct $thread * t );
     117void remove_( recursive_mutex_lock & this );
     118void set_recursion_count( recursive_mutex_lock & this, size_t recursion );
     119size_t get_recursion_count( recursive_mutex_lock & this );
    128120
    129121///////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.