* thread.cc (pthread::precreate): Use explicit "no inherit" option when
creating mutex. (pthread_mutex::nativeMutex::init): Ditto. (semaphore::semaphore): Ditto.
This commit is contained in:
parent
e58273df45
commit
bd2b5664a1
@ -1,3 +1,10 @@
|
|||||||
|
2002-09-30 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* thread.cc (pthread::precreate): Use explicit "no inherit" option when
|
||||||
|
creating mutex.
|
||||||
|
(pthread_mutex::nativeMutex::init): Ditto.
|
||||||
|
(semaphore::semaphore): Ditto.
|
||||||
|
|
||||||
2002-09-30 Christopher Faylor <cgf@redhat.com>
|
2002-09-30 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* thread.cc (pthread_key::keys): Do not copy on fork.
|
* thread.cc (pthread_key::keys): Do not copy on fork.
|
||||||
|
@ -317,7 +317,7 @@ pthread::precreate (pthread_attr *newattr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cancel_event = ::CreateEvent (NULL,TRUE,FALSE,NULL);
|
cancel_event = ::CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
|
||||||
if (!cancel_event)
|
if (!cancel_event)
|
||||||
{
|
{
|
||||||
system_printf ("couldn't create cancel event, this %p LastError %E", this);
|
system_printf ("couldn't create cancel event, this %p LastError %E", this);
|
||||||
@ -1215,7 +1215,7 @@ pthread_mutex::fixup_after_fork ()
|
|||||||
bool
|
bool
|
||||||
pthread_mutex::nativeMutex::init ()
|
pthread_mutex::nativeMutex::init ()
|
||||||
{
|
{
|
||||||
theHandle = CreateMutex (NULL, FALSE, NULL);
|
theHandle = CreateMutex (&sec_none_nih, FALSE, NULL);
|
||||||
if (!theHandle)
|
if (!theHandle)
|
||||||
{
|
{
|
||||||
debug_printf ("CreateMutex failed. %E");
|
debug_printf ("CreateMutex failed. %E");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user