Ticket #4064: pthread_cond.c.alt_1.diff
File pthread_cond.c.alt_1.diff, 408 bytes (added by , 15 years ago) |
---|
-
pthread_cond.c
82 82 // Note, this is thread-safe, since another thread would be required to 83 83 // hold the same mutex. 84 84 sem_id sem = create_sem(0, "pthread_cond"); 85 if ( cond->sem < 0)85 if (sem < 0) 86 86 return EAGAIN; 87 87 cond->sem = sem; 88 88 }