From: Christopher Dykes Date: Fri, 23 Jun 2017 01:07:39 +0000 (-0700) Subject: Fix ThreadName.cpp on Windows X-Git-Tag: v2017.06.26.00~13 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7af82bb28731bec1eed740010bca83addc218875;p=folly.git 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 --- 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,