+template <typename T>
+inline bool setThreadName(T /* id */, StringPiece /* name */) {
+ static_assert(
+ std::is_same<T, pthread_t>::value ||
+ std::is_same<T, std::thread::native_handle_type>::value,
+ "type must be pthread_t or std::thread::native_handle_type");
+ return false;
+}
+
+#ifdef FOLLY_HAS_PTHREAD_SETNAME_NP
+template <>