Ticket #4064: pthread_cond.c.alt_1.diff

File pthread_cond.c.alt_1.diff, 408 bytes (added by oco, 15 years ago)

First patch

  • pthread_cond.c

     
    8282        // Note, this is thread-safe, since another thread would be required to
    8383        // hold the same mutex.
    8484        sem_id sem = create_sem(0, "pthread_cond");
    85         if (cond->sem < 0)
     85        if (sem < 0)
    8686            return EAGAIN;
    8787        cond->sem = sem;
    8888    }