blob: da364c77fb7b82a70efed408286b9d0b8febf0fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- third_party/perfetto/include/perfetto/ext/base/thread_utils.h.orig 2020-07-13 15:16:20 UTC
+++ third_party/perfetto/include/perfetto/ext/base/thread_utils.h
@@ -47,6 +47,9 @@ inline bool MaybeSetThreadName(const std::string& name
#if PERFETTO_BUILDFLAG(PERFETTO_OS_MACOSX)
return pthread_setname_np(buf) == 0;
+#elif PERFETTO_BUILDFLAG(PERFETTO_OS_FREEBSD)
+ pthread_set_name_np(pthread_self(), buf);
+ return true;
#else
return pthread_setname_np(pthread_self(), buf) == 0;
#endif
|