]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
thread: Add a Windows pthread variant to print thread identifiers
authorMartin Willi <martin@revosec.ch>
Fri, 11 Oct 2013 15:14:04 +0000 (17:14 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 3 Jun 2014 10:24:34 +0000 (12:24 +0200)
src/libstrongswan/threading/thread.c

index 0adfb31d00341401c9a104d9cf849ac5e426bd02..593f44a4495e515a67b94de05a1eeb7b23426975 100644 (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);