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_win32.c

    r974 r1042  
    886886    PJ_ASSERT_RETURN(mutex, PJ_EINVAL); 
    887887 
     888    PJ_LOG(6,(mutex->obj_name, "Mutex: thread %s is trying",  
     889                                pj_thread_this()->obj_name)); 
     890 
    888891#if PJ_WIN32_WINNT >= 0x0400 
    889892    status=TryEnterCriticalSection(&mutex->crit) ? PJ_SUCCESS : PJ_EUNKNOWN; 
     
    900903        ++mutex->nesting_level; 
    901904#endif 
    902     } 
     905    } else { 
     906        PJ_LOG(6,(mutex->obj_name, "Mutex: thread %s's trylock() failed",  
     907                                    pj_thread_this()->obj_name)); 
     908    } 
     909 
    903910    return status; 
    904911} 
Note: See TracChangeset for help on using the changeset viewer.