Changes in / [22bdc34:c8ad5d9]


Ignore:
Location:
src/libcfa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/bits/locks.h

    r22bdc34 rc8ad5d9  
    6969        }
    7070
    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 
    7871        // Lock the spinlock, return false if already acquired
    7972        static inline _Bool try_lock  ( __spinlock_t & this __cfaabi_dbg_ctx_param2 ) {
     
    8174                if( result ) {
    8275                        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                        // )
    8480                }
    8581                return result;
     
    109105                }
    110106                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                // )
    112111        }
    113112
  • src/libcfa/concurrency/kernel.c

    r22bdc34 rc8ad5d9  
    725725                thrd->dbg_next = NULL;
    726726        }
    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         }
    732727)
    733728// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.