OSDN Git Service

* thread.cc (pthread::create): Added trace printf to get CreateThread
authorcgf <cgf>
Thu, 27 Jun 2002 14:19:29 +0000 (14:19 +0000)
committercgf <cgf>
Thu, 27 Jun 2002 14:19:29 +0000 (14:19 +0000)
LastError.

winsup/cygwin/ChangeLog
winsup/cygwin/thread.cc

index 4d3acc7..871ab64 100644 (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.
index 607e212..39fad36 100644 (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);