Changeset 313 for pthread


Ignore:
Timestamp:
Apr 17, 2011, 4:27:27 PM (14 years ago)
Author:
Yuri Dario
Message:

pthread: fix PTHREAD_COND_INITILIZER macro.

Location:
pthread/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pthread/trunk/src/my_os2cond.c

    r310 r313  
    115115
    116116        // initialize static semaphores created with PTHREAD_COND_INITIALIZER state.
    117         if (*cond == -1)
     117        if (*cond == PTHREAD_COND_INITIALIZER)
    118118                pthread_cond_init( cond, NULL);
    119119
     
    155155
    156156        // initialize static semaphores created with PTHREAD_COND_INITIALIZER state.
    157         if (*cond == -1)
     157        if (*cond == PTHREAD_COND_INITIALIZER)
    158158                pthread_cond_init( cond, NULL);
    159159
     
    198198       
    199199        // initialize static semaphores created with PTHREAD_COND_INITIALIZER state.
    200         if (*cond == -1)
     200        if (*cond == PTHREAD_COND_INITIALIZER)
    201201                pthread_cond_init( cond, NULL);
    202202
     
    224224
    225225        // initialize static semaphores created with PTHREAD_COND_INITIALIZER state.
    226         if (*cond == -1)
     226        if (*cond == PTHREAD_COND_INITIALIZER)
    227227                pthread_cond_init( cond, NULL);
    228228
  • TabularUnified pthread/trunk/src/pthread.h

    r310 r313  
    4040#define PTHREAD_NEEDS_INIT  0
    4141#define PTHREAD_DONE_INIT   1
    42 #define PTHREAD_COND_INITIALIZER {-1,-1}
     42#define PTHREAD_COND_INITIALIZER ((pthread_cond_t) -1)
    4343
    4444#define pthread_handler_decl(A,B) void * A(void *B)
Note: See TracChangeset for help on using the changeset viewer.