adding noreturn attribute to pthread_exit

2013-01-14 Thread Antti Kantee
Hi, Calling pthread_exit() at the end of a routine marked noreturn produces a compiler warning/error on cygwin: error: 'noreturn' function does return Is it possible to add the attribute to the cygwin pthread.h: --- pthread.h.orig 2012-10-19 14:40:13.0 +0200 +++ pthread.h 2013

pthread_rwlock_tryrdlock bug (with test & patch)

2013-01-06 Thread Antti Kantee
[I'd submit this to cygwin-patches, but the web page says only subscribers can post to that list, so please bear with me for this simple issue] Hi, Calling pthread_rwlock_tryrdlock() twice from the same thread always fails with EBUSY the second time. See attached test.c. Replacing the seco