Changeset 84 in libcf


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

#1 fix threading for error-handling

Location:
trunk
Files:
2 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
  • trunk/test/makefile

    r83 r84  
    2020
    2121INCLUDES        = -I../include
    22 LIBS            = -L$(TARGET_PATH) -lcf
     22LIBS            = -L$(TARGET_PATH) -lcf -lpthread
    2323
    2424LIB_CF          = $(TARGET_PATH)/lib$(TARGET_PATH).$(EXT_SHARED)
Note: See TracChangeset for help on using the changeset viewer.