Ignore:
Timestamp:
Mar 5, 2007 9:08:01 PM (17 years ago)
Author:
bennylp
Message:

Optimization on the log and add tracing on mutex trylock

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_unix.c

    r974 r1042  
    11241124    PJ_ASSERT_RETURN(mutex, PJ_EINVAL); 
    11251125 
     1126    PJ_LOG(6,(mutex->obj_name, "Mutex: thread %s is trying",  
     1127                                pj_thread_this()->obj_name)); 
     1128 
    11261129    status = pthread_mutex_trylock( &mutex->mutex ); 
    11271130 
     
    11391142                                  pj_thread_this()->obj_name)); 
    11401143#endif 
     1144    } else { 
     1145        PJ_LOG(6,(mutex->obj_name, "Mutex: thread %s's trylock() failed",  
     1146                                    pj_thread_this()->obj_name)); 
    11411147    } 
    11421148     
Note: See TracChangeset for help on using the changeset viewer.