From 7af82bb28731bec1eed740010bca83addc218875 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Thu, 22 Jun 2017 18:07:39 -0700 Subject: [PATCH] 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 --- folly/ThreadName.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/ThreadName.cpp b/folly/ThreadName.cpp index 6f311575..919a0112 100644 --- a/folly/ThreadName.cpp +++ b/folly/ThreadName.cpp @@ -42,7 +42,7 @@ namespace folly { namespace { -#if FOLLY_HAVE_PTHREAD +#if FOLLY_HAVE_PTHREAD && !_WIN32 pthread_t stdTidToPthreadId(std::thread::id tid) { static_assert( std::is_same::value, -- 2.34.1