Changeset 7b3a6e6 for libcfa/src/bits/locks.hfa
- Timestamp:
- Aug 14, 2018, 1:21:19 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 5a5d31a
- Parents:
- ef2eade (diff), 0e0f128c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/locks.hfa
ref2eade r7b3a6e6 10 10 // Created On : Tue Oct 31 15:14:38 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 30 18:18:13201813 // Update Count : 912 // Last Modified On : Sat Aug 11 15:42:24 2018 13 // Update Count : 10 14 14 // 15 15 … … 50 50 struct { 51 51 // Align lock on 128-bit boundary 52 __ALIGN__ volatile _Bool lock;52 __ALIGN__ volatile bool lock; 53 53 }; 54 54 #ifdef __CFA_DEBUG__ … … 79 79 80 80 // Lock the spinlock, return false if already acquired 81 static inline _Bool try_lock ( __spinlock_t & this __cfaabi_dbg_ctx_param2 ) {82 _Bool result = (this.lock == 0) && (__atomic_test_and_set( &this.lock, __ATOMIC_ACQUIRE ) == 0);81 static inline bool try_lock ( __spinlock_t & this __cfaabi_dbg_ctx_param2 ) { 82 bool result = (this.lock == 0) && (__atomic_test_and_set( &this.lock, __ATOMIC_ACQUIRE ) == 0); 83 83 if( result ) { 84 84 disable_interrupts();
Note: See TracChangeset
for help on using the changeset viewer.