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]

Bugfix for pthread_cond_init


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;




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]