Changes in / [22bdc34:c8ad5d9]
- Location:
- src/libcfa
- Files:
-
- 2 edited
-
bits/locks.h (modified) (3 diffs)
-
concurrency/kernel.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/bits/locks.h
r22bdc34 rc8ad5d9 69 69 } 70 70 71 72 #ifdef __CFA_DEBUG__73 void __cfaabi_dbg_record(__spinlock_t & this, const char * prev_name);74 #else75 #define __cfaabi_dbg_record(x, y)76 #endif77 78 71 // Lock the spinlock, return false if already acquired 79 72 static inline _Bool try_lock ( __spinlock_t & this __cfaabi_dbg_ctx_param2 ) { … … 81 74 if( result ) { 82 75 disable_interrupts(); 83 __cfaabi_dbg_record( this, caller ); 76 // __cfaabi_dbg_debug_do( 77 // this.prev_name = caller; 78 // this.prev_thrd = TL_GET( this_thread ); 79 // ) 84 80 } 85 81 return result; … … 109 105 } 110 106 disable_interrupts(); 111 __cfaabi_dbg_record( this, caller ); 107 // __cfaabi_dbg_debug_do( 108 // this.prev_name = caller; 109 // this.prev_thrd = TL_GET( this_thread ); 110 // ) 112 111 } 113 112 -
src/libcfa/concurrency/kernel.c
r22bdc34 rc8ad5d9 725 725 thrd->dbg_next = NULL; 726 726 } 727 728 void __cfaabi_dbg_record(__spinlock_t & this, const char * prev_name) {729 this.prev_name = prev_name;730 this.prev_thrd = TL_GET( this_thread );731 }732 727 ) 733 728 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.