diff options
author | Martin Willi <martin@revosec.ch> | 2013-10-11 17:14:04 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2014-06-03 12:24:34 +0200 |
commit | c6b588bf061b0a105a219cbb4449e917111558d6 (patch) | |
tree | b2b46556cd84da36acf2db9459c9e0ee949898ed | |
parent | 2e6c203bad2b1c7f05584ab6f91eedc23c880b6d (diff) | |
download | strongswan-c6b588bf061b0a105a219cbb4449e917111558d6.tar.bz2 strongswan-c6b588bf061b0a105a219cbb4449e917111558d6.tar.xz |
thread: Add a Windows pthread variant to print thread identifiers
-rw-r--r-- | src/libstrongswan/threading/thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/threading/thread.c b/src/libstrongswan/threading/thread.c index 0adfb31d0..593f44a44 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); |