This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Bugfix for pthread_cond_init
- To: <cygwin-patches at cygwin dot com>
- Subject: Bugfix for pthread_cond_init
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Sat, 17 Mar 2001 15:43:36 +1100
Changelog:
Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.cc MTinterface::CreateCond check for null attr pointer.
Index: cygwin/thread.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/thread.cc,v
retrieving revision 1.17
diff -u -p -r1.17 thread.cc
--- thread.cc 2001/03/17 01:14:57 1.17
+++ thread.cc 2001/03/17 04:41:40
@@ -483,7 +483,7 @@ MTinterface::CreateCond (pthread_cond_t
if (!item)
system_printf ("cond creation failed");
item->used = true;
- item->shared = attr->shared;
+ item->shared = attr ? attr->shared: PTHREAD_PROCESS_PRIVATE;
item->mutexitem=NULL;
item->waiting=0;