egor duda
Mon Sep 24 08:41:00 GMT 2001


  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.   icq 5165414 fidonet 2:5020/496.19

-------------- next part --------------
2001-09-24  Egor Duda  <>

	* include/pthread.h: Define PTHREAD_COND_INITIALIZER.
	(__cleanup_routine_type): Fix typo.
	* (__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: <>

More information about the Cygwin-patches mailing list