Changeset 623 for trunk/kernel/libk/queuelock.c
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/queuelock.c
r610 r623 66 66 busylock_acquire( &lock->lock ); 67 67 68 #if DEBUG_QUEUELOCK_TYPE 69 uint32_t lock_type = lock->lock.type; 70 #endif 71 68 72 // block and deschedule if lock already taken 69 73 while( lock->taken ) … … 71 75 72 76 #if DEBUG_QUEUELOCK_TYPE 73 uint32_t lock_type = lock->lock.type; 74 if( DEBUG_QUEUELOCK_TYPE == lock_type ) 77 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 75 78 printk("\n[%s ] thread[%x,%x] BLOCK on q_lock %s [%x,%x]\n", 76 79 __FUNCTION__, this->process->pid, this->trdid, … … 97 100 98 101 #if DEBUG_QUEUELOCK_TYPE 99 if( DEBUG_QUEUELOCK_TYPE == lock_type)102 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 100 103 printk("\n[%s] thread[%x,%x] ACQUIRE q_lock %s [%x,%x]\n", 101 104 __FUNCTION__, this->process->pid, this->trdid, … … 123 126 uint32_t lock_type = lock->lock.type; 124 127 thread_t * this = CURRENT_THREAD; 125 if( DEBUG_QUEUELOCK_TYPE == lock_type)128 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 126 129 printk("\n[%s] thread[%x,%x] RELEASE q_lock %s [%x,%x]\n", 127 130 __FUNCTION__, this->process->pid, this->trdid, … … 139 142 140 143 #if DEBUG_QUEUELOCK_TYPE 141 if( DEBUG_QUEUELOCK_TYPE == lock_type)144 if( (DEBUG_QUEUELOCK_TYPE == lock_type) || (DEBUG_QUEUELOCK_TYPE == 1000) ) 142 145 printk("\n[%s] thread[%x,%x] UNBLOCK thread [%x,%x] / q_lock %s [%x,%x]\n", 143 146 __FUNCTION__, this->process->pid, this->trdid, thread->process->pid, thread->trdid,
Note: See TracChangeset
for help on using the changeset viewer.