Re: simple multithread program fails on Cygwin, succeeds on Linux

2009-08-10 Thread Nicholas Sherlock
Bruno Haible wrote: Hi, The attached test program for pthread_once uses the following basic POSIX threads functions: pthread_create pthread_join pthread_mutex_init pthread_mutex_lock pthread_mutex_unlock pthread_once pthread_rwlock_init pthread_rwlock_rdlock pthread_rwlock_unlo

Re: simple multithread program fails on Cygwin, succeeds on Linux

2009-08-10 Thread Corinna Vinschen
On Aug 10 12:13, Bruno Haible wrote: > Hi, > > The attached test program for pthread_once uses the following basic POSIX > threads functions: > pthread_create > pthread_join > pthread_mutex_init > pthread_mutex_lock > pthread_mutex_unlock > pthread_once > pthread_rwlock_init > pthr

simple multithread program fails on Cygwin, succeeds on Linux

2009-08-10 Thread Bruno Haible
Hi, The attached test program for pthread_once uses the following basic POSIX threads functions: pthread_create pthread_join pthread_mutex_init pthread_mutex_lock pthread_mutex_unlock pthread_once pthread_rwlock_init pthread_rwlock_rdlock pthread_rwlock_unlock pthread_rwlock_wr