Changeset 603 for trunk/kernel/libk/queuelock.c
- Timestamp:
- Dec 3, 2018, 12:17:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/queuelock.c
r600 r603 44 44 list_root_init( &lock->root ); 45 45 busylock_init( &lock->lock , type ); 46 47 #if DEBUG_QUEUELOCK 48 thread_t * this = CURRENT_THREAD; 49 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 50 printk("\n[%s] thread[%x,%x] initialise lock %s [%x,%x]\n", 51 __FUNCTION__, this->process->pid, this->trdid, 52 lock_type_str[type], local_cxy, lock ); 53 #endif 54 46 55 } 47 56 … … 64 73 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 65 74 printk("\n[%s ] thread[%x,%x] BLOCK on q_lock %s [%x,%x]\n", 66 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 75 __FUNCTION__, this->process->pid, this->trdid, 76 lock_type_str[lock->lock.type], local_cxy, lock ); 67 77 #endif 68 78 // get pointer on calling thread … … 88 98 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 89 99 printk("\n[%s] thread[%x,%x] ACQUIRE q_lock %s [%x,%x]\n", 90 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 100 __FUNCTION__, this->process->pid, this->trdid, 101 lock_type_str[lock->lock.type], local_cxy, lock ); 91 102 #endif 92 103 … … 112 123 if( DEBUG_QUEUELOCK < (uint32_t)hal_get_cycles() ) 113 124 printk("\n[%s] thread[%x,%x] RELEASE q_lock %s [%x,%x]\n", 114 __FUNCTION__, this->process->pid, this->trdid, lock_type_str[lock->lock.type], local_cxy, lock ); 125 __FUNCTION__, this->process->pid, this->trdid, 126 lock_type_str[lock->lock.type], local_cxy, lock ); 115 127 #endif 116 128
Note: See TracChangeset
for help on using the changeset viewer.