Changeset 61 in libcf for trunk/test/test.c


Ignore:
Timestamp:
04/08/13 09:52:08 (11 years ago)
Author:
cheese
Message:

#1 fix bug in test/sample code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/test.c

    r57 r61  
    110110    }
    111111
     112    for (i = 0 ; i < 10 ; i++)
     113    {
     114        if (CF_Thread_Join (&tid[i]) < 0)
     115            CF_DEBUG_PRINT (stderr, "failed to join %dth thread\n", i);
     116    }
     117
    112118    if (CF_Mutex_Destory (&globalMutex) < 0) {
    113119        // error
    114     }
    115 
    116     for (i = 0 ; i < 10 ; i++)
    117     {
    118         if (CF_Thread_Join (&tid[i]) < 0)
    119             CF_DEBUG_PRINT (stderr, "failed to join %dth thread\n", i);
    120120    }
    121121    /* }}} mt */
Note: See TracChangeset for help on using the changeset viewer.