PTHREAD_COND_INITIALIZER
egor duda
deo@logos-m.ru
Mon Sep 24 08:41:00 GMT 2001
Hi!
attached is a patch which adds support for PTHREAD_COND_INITIALIZER.
please don't be fooled by
-__pthread_cond_destroy (pthread_cond_t *cond)
+__pthread_cond_construct (pthread_cond_t *cond)
lines, it's 'diff', not me :)
egor. mailto:deo@logos-m.ru icq 5165414 fidonet 2:5020/496.19
pthreads_cond_initializer.diff
pthreads_cond_initializer.ChangeLog
-------------- next part --------------
2001-09-24 Egor Duda <deo@logos-m.ru>
* include/pthread.h: Define PTHREAD_COND_INITIALIZER.
(__cleanup_routine_type): Fix typo.
* thread.cc (__pthread_cond_construct): New function. Verify
condition variable, and initialize it if needed.
(__pthread_cond_destroy): Accomodate it.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_timedwait): Ditto.
(__pthread_cond_wait): Ditto.
(__pthread_cond_init): Handle PTHREAD_COND_INITIALIZER argument.
* winsup.h (check_null_invalid_struct): Fix typo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthreads_cond_initializer.diff
Type: text/x-diff
Size: 4167 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010924/66c92767/attachment.bin>
More information about the Cygwin-patches
mailing list