Commit 7af82bb2 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Fix ThreadName.cpp on Windows

Summary: I failed to realize that this helper function also needs to be guarded on `!_WIN32`, because the assertions are false on Windows.

Reviewed By: ot, luciang

Differential Revision: D5304914

fbshipit-source-id: f2564cb2fcbfdc73a2529d4a41df2995748bc3f6
parent 7f4b7fc6
...@@ -42,7 +42,7 @@ namespace folly { ...@@ -42,7 +42,7 @@ namespace folly {
namespace { namespace {
#if FOLLY_HAVE_PTHREAD #if FOLLY_HAVE_PTHREAD && !_WIN32
pthread_t stdTidToPthreadId(std::thread::id tid) { pthread_t stdTidToPthreadId(std::thread::id tid) {
static_assert( static_assert(
std::is_same<pthread_t, std::thread::native_handle_type>::value, std::is_same<pthread_t, std::thread::native_handle_type>::value,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment