Ignore:
File:
1 edited

Legend:

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

    r8dc8f68 r6b33e89  
    1111// Created On       : Thu Jan 21 19:46:50 2021
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Thu Aug 21 22:36:44 2025
    14 // Update Count     : 23
     13// Last Modified On : Fri Apr 25 07:14:16 2025
     14// Update Count     : 22
    1515//
    1616
     
    797797
    798798        //-----------------------------------------------------------------------------
    799         // cond_lock
     799        // condition_variable
    800800
    801801        // The multi-tool condition variable
     
    805805        // - has shadow queue
    806806        // - can be signalled outside of critical sections with no locks held
    807         struct cond_lock {
     807        struct condition_variable {
    808808                // Spin lock used for mutual exclusion
    809809                __spinlock_t lock;
     
    816816        };
    817817
    818         void ?{}( cond_lock( L ) & this );
    819         void ^?{}( cond_lock( L ) & this );
    820 
    821         bool notify_one( cond_lock( L ) & this );
    822         bool notify_all( cond_lock( L ) & this );
    823 
    824         uintptr_t front( cond_lock( L ) & this );
    825 
    826         bool empty  ( cond_lock( L ) & this );
    827         int  counter( cond_lock( L ) & this );
    828 
    829         void wait( cond_lock( L ) & this );
    830         void wait( cond_lock( L ) & this, uintptr_t info );
    831         bool wait( cond_lock( L ) & this, Duration duration );
    832         bool wait( cond_lock( L ) & this, uintptr_t info, Duration duration );
    833 
    834         void wait( cond_lock( L ) & this, L & l );
    835         void wait( cond_lock( L ) & this, L & l, uintptr_t info );
    836         bool wait( cond_lock( L ) & this, L & l, Duration duration );
    837         bool wait( cond_lock( L ) & this, L & l, uintptr_t info, Duration duration );
     818        void ?{}( condition_variable( L ) & this );
     819        void ^?{}( condition_variable( L ) & this );
     820
     821        bool notify_one( condition_variable( L ) & this );
     822        bool notify_all( condition_variable( L ) & this );
     823
     824        uintptr_t front( condition_variable( L ) & this );
     825
     826        bool empty  ( condition_variable( L ) & this );
     827        int  counter( condition_variable( L ) & this );
     828
     829        void wait( condition_variable( L ) & this );
     830        void wait( condition_variable( L ) & this, uintptr_t info );
     831        bool wait( condition_variable( L ) & this, Duration duration );
     832        bool wait( condition_variable( L ) & this, uintptr_t info, Duration duration );
     833
     834        void wait( condition_variable( L ) & this, L & l );
     835        void wait( condition_variable( L ) & this, L & l, uintptr_t info );
     836        bool wait( condition_variable( L ) & this, L & l, Duration duration );
     837        bool wait( condition_variable( L ) & this, L & l, uintptr_t info, Duration duration );
    838838
    839839        //-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.