This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
__pthead_mutex_init had a race condition if the mutex is initialized with PTHREAD_MUTEX_INITIALIZER (the mutex could be initialized by two threads simultanously). The patch wraps a mutex around mutex creation. This is will be the last patch for a while. The feedback for the previous ones was a little low, i do not know if no one (except Rob) is interested in pthreads for cygwin or my patches are not welcome. I will wait for comments now. Regards, Thomas 2002-04-26 Thomas Pfaff <tpfaff@gmx.net> * thread.cc (__pthread_mutex_init): Wrappped a mutex around mutex creation to protect against PTHREAD_MUTEX_INITIALIZER race.
Attachment:
pthread_mutex_init.patch
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |