Changeset 125 in libcf for trunk/test/log.c


Ignore:
Timestamp:
06/12/13 13:44:25 (11 years ago)
Author:
cheese
Message:

#1 fix mutex bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/log.c

    r122 r125  
    1919    int th = 0;
    2020   
    21     if (CF_Mutex_Lock (&globalMutex) < 0) { // for critical section
     21    if (CF_Mutex_Lock (globalMutex) < 0) { // for critical section
    2222        // error
    2323    }
    2424    th = cnt++;
    25     if (CF_Mutex_Unlock (&globalMutex) < 0) { // for critical section
     25    if (CF_Mutex_Unlock (globalMutex) < 0) { // for critical section
    2626        // error
    2727    }
Note: See TracChangeset for help on using the changeset viewer.