* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
This commit is contained in:
parent
ddca580f9a
commit
c0c9de3c66
|
@ -1,3 +1,7 @@
|
||||||
|
Saturday Mar 17 3:45 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||||
|
|
||||||
|
* thread.cc (MTinterface::CreateCond): Check for null attr pointer.
|
||||||
|
|
||||||
Fri Mar 16 21:13:23 2001 Christopher Faylor <cgf@cygnus.com>
|
Fri Mar 16 21:13:23 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input
|
* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input
|
||||||
|
|
|
@ -483,7 +483,7 @@ MTinterface::CreateCond (pthread_cond_t * cond, const pthread_condattr_t * attr)
|
||||||
if (!item)
|
if (!item)
|
||||||
system_printf ("cond creation failed");
|
system_printf ("cond creation failed");
|
||||||
item->used = true;
|
item->used = true;
|
||||||
item->shared = attr->shared;
|
item->shared = attr ? attr->shared: PTHREAD_PROCESS_PRIVATE;
|
||||||
item->mutexitem=NULL;
|
item->mutexitem=NULL;
|
||||||
item->waiting=0;
|
item->waiting=0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue