* thread.cc (pthread::precreate): Delete duplicate setting of cancel_event.

This commit is contained in:
Christopher Faylor 2003-12-08 06:32:46 +00:00
parent da915a3aa6
commit ac5ba8b0de
2 changed files with 5 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2003-12-08 Christopher Faylor <cgf@redhat.com>
* thread.cc (pthread::precreate): Delete duplicate setting of
cancel_event.
2003-12-08 Christopher Faylor <cgf@redhat.com>
* fhandler.h (fhandler_tty_slave::ttyname): Use name from pc since it

View File

@ -308,15 +308,6 @@ pthread::precreate (pthread_attr *newattr)
}
/* Change the mutex type to NORMAL to speed up mutex operations */
mutex.type = PTHREAD_MUTEX_NORMAL;
cancel_event = ::CreateEvent (&sec_none_nih, TRUE, FALSE, NULL);
if (!cancel_event)
{
system_printf ("couldn't create cancel event, this %p LastError %E", this);
/* we need the event for correct behaviour */
magic = 0;
return;
}
}
void