mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-01 12:35:44 +08:00
* thread.cc (pthread::init_mainthread): Initialize thread mutex to
type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.
This commit is contained in:
parent
bcf9cc9b66
commit
e8705505fe
@ -1,3 +1,8 @@
|
|||||||
|
2014-07-21 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* thread.cc (pthread::init_mainthread): Initialize thread mutex to
|
||||||
|
type PTHREAD_MUTEX_RECURSIVE, just as for any other thread.
|
||||||
|
|
||||||
2014-07-16 Corinna Vinschen <corinna@vinschen.de>
|
2014-07-16 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* thread.cc (pthread::create): Handle stackaddr as upper bound address.
|
* thread.cc (pthread::create): Handle stackaddr as upper bound address.
|
||||||
|
@ -358,6 +358,10 @@ pthread::init_mainthread ()
|
|||||||
if (!thread->create_cancel_event ())
|
if (!thread->create_cancel_event ())
|
||||||
api_fatal ("couldn't create cancel event for main thread");
|
api_fatal ("couldn't create cancel event for main thread");
|
||||||
VerifyHandle (thread->win32_obj_id);
|
VerifyHandle (thread->win32_obj_id);
|
||||||
|
/* Make sure the pthread mutex is recursive. See comment in
|
||||||
|
pthread::precreate (called only for subsequent pthreads)
|
||||||
|
for a description. */
|
||||||
|
thread->mutex.set_type (PTHREAD_MUTEX_RECURSIVE);
|
||||||
thread->postcreate ();
|
thread->postcreate ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user