Changeset 619 for trunk/kernel/libk/remote_mutex.c
- Timestamp:
- Feb 12, 2019, 1:15:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/remote_mutex.c
r611 r619 138 138 thread_t * this = CURRENT_THREAD; 139 139 if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX ) 140 printk("\n[ DBG] %s : thread %x in %x process /mutex(%x,%x)\n",141 __FUNCTION__, this-> trdid, this->process->pid, local_cxy, mutex_ptr );140 printk("\n[%s] : thread[%x,%x] created mutex(%x,%x)\n", 141 __FUNCTION__, this->process->pid, this->trdid, local_cxy, mutex_ptr ); 142 142 #endif 143 143 … … 173 173 remote_queuelock_release( XPTR( ref_cxy , &ref_ptr->sync_lock ) ); 174 174 175 // release memory allocated for mutex aphoredescriptor175 // release memory allocated for mutex descriptor 176 176 if( mutex_cxy == local_cxy ) // reference is local 177 177 { … … 183 183 else // reference is remote 184 184 { 185 rpc_kcm_free_client( mutex_cxy , mutex_ptr , KMEM_ BARRIER);185 rpc_kcm_free_client( mutex_cxy , mutex_ptr , KMEM_MUTEX ); 186 186 } 187 187 … … 226 226 thread_t * this = CURRENT_THREAD; 227 227 if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX ) 228 printk("\n[ DBG] %s : thread %x in process %xSUCCESS on mutex(%x,%x)\n",229 __FUNCTION__, this-> trdid, this->process->pid, mutex_cxy, mutex_ptr );228 printk("\n[%s] thread[%x,%x] SUCCESS on mutex(%x,%x)\n", 229 __FUNCTION__, this->process->pid, this->trdid, mutex_cxy, mutex_ptr ); 230 230 #endif 231 231 … … 247 247 thread_t * this = CURRENT_THREAD; 248 248 if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX ) 249 printk("\n[ DBG] %s : thread %x in process %xBLOCKED on mutex(%x,%x)\n",250 __FUNCTION__, this-> trdid, this->process->pid, mutex_cxy, mutex_ptr );249 printk("\n[%s] thread[%x,%x] BLOCKED on mutex(%x,%x)\n", 250 __FUNCTION__, this->process->pid, this->trdid, mutex_cxy, mutex_ptr ); 251 251 #endif 252 252 … … 296 296 thread_t * this = CURRENT_THREAD; 297 297 if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX ) 298 printk("\n[ DBG] %s : thread %x in %x processEXIT / mutex(%x,%x)\n",299 __FUNCTION__, this-> trdid, this->process->pid, mutex_cxy, mutex_ptr );298 printk("\n[%s] thread[%x,%x] EXIT / mutex(%x,%x)\n", 299 __FUNCTION__, this->process->pid, this->trdid, mutex_cxy, mutex_ptr ); 300 300 #endif 301 301 … … 320 320 process_t * process = hal_remote_lpt( XPTR( thread_cxy , &thread_ptr->process ) ); 321 321 pid_t pid = hal_remote_l32( XPTR( thread_cxy , &process->pid ) ); 322 printk("\n[ DBG] %s : thread %x in process %xUNBLOCK thread %x in process %d / mutex(%x,%x)\n",323 __FUNCTION__, this-> trdid, this->process->pid, trdid, pid, mutex_cxy, mutex_ptr );322 printk("\n[%s] thread[%x,%x] UNBLOCK thread %x in process %d / mutex(%x,%x)\n", 323 __FUNCTION__, this->process->pid, this->trdid, trdid, pid, mutex_cxy, mutex_ptr ); 324 324 } 325 325 #endif … … 371 371 thread_t * this = CURRENT_THREAD; 372 372 if( (uint32_t)hal_get_cycles() > DEBUG_QUEUELOCK ) 373 printk("\n[ DBG] %s : SUCCESS for thread %x in process %x/ mutex(%x,%x)\n",374 __FUNCTION__, this-> trdid, this->process->pid, mutex_cxy, mutex_ptr );373 printk("\n[%s] SUCCESS for thread[%x,%x] / mutex(%x,%x)\n", 374 __FUNCTION__, this->process->pid, this->trdid, mutex_cxy, mutex_ptr ); 375 375 #endif 376 376 // release busylock protecting mutex state … … 385 385 thread_t * this = CURRENT_THREAD; 386 386 if( (uint32_t)hal_get_cycles() > DEBUG_QUEUELOCK ) 387 printk("\n[ DBG] %s : FAILURE for thread %x in process %x/ mutex(%x,%x)\n",388 __FUNCTION__, this-> trdid, this->process->pid, mutex_cxy, mutex_ptr );387 printk("\n[%s] FAILURE for thread[%x,%x] / mutex(%x,%x)\n", 388 __FUNCTION__, this->process->pid, this->trdid, mutex_cxy, mutex_ptr ); 389 389 #endif 390 390 // release busylock protecting mutex state
Note: See TracChangeset
for help on using the changeset viewer.