From: Martin Willi Date: Fri, 11 Oct 2013 15:14:04 +0000 (+0200) Subject: thread: Add a Windows pthread variant to print thread identifiers X-Git-Tag: 5.2.0dr6~24^2~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6b588bf061b0a105a219cbb4449e917111558d6;p=thirdparty%2Fstrongswan.git thread: Add a Windows pthread variant to print thread identifiers --- diff --git a/src/libstrongswan/threading/thread.c b/src/libstrongswan/threading/thread.c index 0adfb31d00..593f44a449 100644 --- a/src/libstrongswan/threading/thread.c +++ b/src/libstrongswan/threading/thread.c @@ -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);