* thread.cc (pthread::create): Added trace printf to get CreateThread

LastError.
This commit is contained in:
Christopher Faylor 2002-06-27 14:19:30 +00:00
parent 5b509758a0
commit 196cdd45f6
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-27 Thomas Pfaff <tpfaff@gmx.net>
* thread.cc (pthread::create): Added trace printf to get CreateThread
LastError.
2002-06-27 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (list::match): Check using pagesize aligned size.

View File

@ -399,7 +399,10 @@ pthread::create (void *(*func) (void *), pthread_attr *newattr,
this, CREATE_SUSPENDED, &thread_id);
if (!win32_obj_id)
magic = 0;
{
thread_printf ("CreateThread failed: this %p LastError %E", this);
magic = 0;
}
else
{
InterlockedIncrement (&MT_INTERFACE->threadcount);