Changeset 7636fcc
- Timestamp:
- Jan 6, 2022, 6:00:27 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 6fafda8
- Parents:
- 35d73c0
- Files:
-
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r35d73c0 r7636fcc 177 177 }; 178 178 179 static inline void ?{}(fast_lock & this) __attribute__((deprecated("use linear_backoff_then_block_lock instead"))); 179 180 static inline void ?{}(fast_lock & this) { this.owner = 0p; } 180 181 … … 184 185 } 185 186 186 static inline void lock( fast_lock & this ) __attribute__(( artificial));187 static inline void lock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial)); 187 188 static inline void lock( fast_lock & this ) { 188 189 thread$ * thrd = active_thread(); … … 195 196 } 196 197 197 static inline bool try_lock( fast_lock & this ) __attribute__(( artificial));198 static inline bool try_lock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial)); 198 199 static inline bool try_lock ( fast_lock & this ) { 199 200 thread$ * thrd = active_thread(); … … 202 203 } 203 204 204 static inline thread$ * unlock( fast_lock & this ) __attribute__(( artificial));205 static inline thread$ * unlock( fast_lock & this ) __attribute__((deprecated("use linear_backoff_then_block_lock instead"), artificial)); 205 206 static inline thread$ * unlock( fast_lock & this ) { 206 207 /* paranoid */ verify(active_thread() == this.owner);
Note: See TracChangeset
for help on using the changeset viewer.