thread: Add a Windows pthread variant to print thread identifiers

This commit is contained in:
Martin Willi
2014-06-03 12:24:34 +02:00
parent 2e6c203bad
commit c6b588bf06
+3
View File
@@ -301,6 +301,9 @@ static void *thread_main(private_thread_t *this)
#ifdef HAVE_GETTID
DBG2(DBG_LIB, "created thread %.2d [%u]",
this->id, gettid());
#elif defined(WIN32)
DBG2(DBG_LIB, "created thread %.2d [%p]",
this->id, this->thread_id.p);
#else
DBG2(DBG_LIB, "created thread %.2d [%lx]",
this->id, (u_long)this->thread_id);