Changeset 420b498


Ignore:
Timestamp:
Sep 23, 2021, 12:41:19 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
db614d0
Parents:
abcae55
Message:

Moved cfathread to Colby's new lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/clib/cfathread.cfa

    rabcae55 r420b498  
    245245        // Mutex
    246246        struct cfathread_mutex {
    247                 fast_lock impl;
     247                linear_backoff_then_block_lock impl;
    248248        };
    249249        int cfathread_mutex_init(cfathread_mutex_t *restrict mut, const cfathread_mutexattr_t *restrict) __attribute__((nonnull (1))) { *mut = new(); return 0; }
     
    260260        // Condition
    261261        struct cfathread_condition {
    262                 condition_variable(fast_lock) impl;
     262                condition_variable(linear_backoff_then_block_lock) impl;
    263263        };
    264264        int cfathread_cond_init(cfathread_cond_t *restrict cond, const cfathread_condattr_t *restrict) __attribute__((nonnull (1))) { *cond = new(); return 0; }
Note: See TracChangeset for help on using the changeset viewer.