Ignore:
Timestamp:
Jan 6, 2022, 6:00:27 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
6fafda8
Parents:
35d73c0
Message:

Removed fast_lock from testing and added deprecation attribute to it.

File:
1 edited

Legend:

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

    r35d73c0 r7636fcc  
    177177};
    178178
     179static inline void ?{}(fast_lock & this) __attribute__((deprecated("use linear_backoff_then_block_lock instead")));
    179180static inline void ?{}(fast_lock & this) { this.owner = 0p; }
    180181
     
    184185}
    185186
    186 static inline void lock( fast_lock & this ) __attribute__((artificial));
     187static inline void lock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial));
    187188static inline void lock( fast_lock & this ) {
    188189        thread$ * thrd = active_thread();
     
    195196}
    196197
    197 static inline bool try_lock( fast_lock & this ) __attribute__((artificial));
     198static inline bool try_lock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial));
    198199static inline bool try_lock ( fast_lock & this ) {
    199200        thread$ * thrd = active_thread();
     
    202203}
    203204
    204 static inline thread$ * unlock( fast_lock & this ) __attribute__((artificial));
     205static inline thread$ * unlock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial));
    205206static inline thread$ * unlock( fast_lock & this ) {
    206207        /* paranoid */ verify(active_thread() == this.owner);
Note: See TracChangeset for help on using the changeset viewer.