Changeset ff29f08 for src/libcfa/bits/locks.h
- Timestamp:
- May 18, 2018, 2:09:21 PM (7 years ago)
- Branches:
- new-env, with_gc
- Children:
- 2472a19
- Parents:
- f6f0cca3 (diff), c7d8100c (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
-
src/libcfa/bits/locks.h
rf6f0cca3 rff29f08 69 69 } 70 70 71 72 #ifdef __CFA_DEBUG__ 73 void __cfaabi_dbg_record(__spinlock_t & this, const char * prev_name); 74 #else 75 #define __cfaabi_dbg_record(x, y) 76 #endif 77 71 78 // Lock the spinlock, return false if already acquired 72 79 static inline _Bool try_lock ( __spinlock_t & this __cfaabi_dbg_ctx_param2 ) { … … 74 81 if( result ) { 75 82 disable_interrupts(); 76 // __cfaabi_dbg_debug_do( 77 // this.prev_name = caller; 78 // this.prev_thrd = TL_GET( this_thread ); 79 // ) 83 __cfaabi_dbg_record( this, caller ); 80 84 } 81 85 return result; … … 105 109 } 106 110 disable_interrupts(); 107 // __cfaabi_dbg_debug_do( 108 // this.prev_name = caller; 109 // this.prev_thrd = TL_GET( this_thread ); 110 // ) 111 __cfaabi_dbg_record( this, caller ); 111 112 } 112 113
Note:
See TracChangeset
for help on using the changeset viewer.