Changeset 84 in libcf for trunk/src/cf_thread.c


Ignore:
Timestamp:
05/02/13 14:53:13 (11 years ago)
Author:
cheese
Message:

#1 fix threading for error-handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cf_thread.c

    r81 r84  
    109109
    110110    result = pthread_create ((THREAD_TYPE *) *threadID, attr, f, arg);
    111     if (result < 0)
     111    if (result)
    112112    {
    113113        CF_Thread_Release (threadID);
     
    182182
    183183    result = pthread_mutex_init (*mutex, NULL);
    184     if (result < 0)
     184    if (result)
    185185        return CF_ERROR_MUTEX_CREATE;
    186186#endif
Note: See TracChangeset for help on using the changeset viewer.