Skip to content

Commit aa784b8

Browse files
authored
fix: remove references to non-existent tracked_objects.h in platform_thread_freebsd.cc (#3223)
The tracked_objects.h header and ThreadData::InitializeThreadContext() were part of Chromium's base library profiling subsystem, which was never ported to brpc. The Linux (platform_thread_linux.cc) and macOS (platform_thread_mac.mm) equivalents already had these references removed. This causes a compile error on FreeBSD: fatal error: 'butil/tracked_objects.h' file not found
1 parent 5a2466a commit aa784b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/butil/threading/platform_thread_freebsd.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "butil/safe_strerror_posix.h"
1414
#include "butil/threading/thread_id_name_manager.h"
1515
#include "butil/threading/thread_restrictions.h"
16-
#include "butil/tracked_objects.h"
1716

1817
#if !defined(OS_NACL)
1918
#include <sys/resource.h>
@@ -46,7 +45,6 @@ int ThreadNiceValue(ThreadPriority priority) {
4645
// static
4746
void PlatformThread::SetName(const char* name) {
4847
ThreadIdNameManager::GetInstance()->SetName(CurrentId(), name);
49-
tracked_objects::ThreadData::InitializeThreadContext(name);
5048

5149
SetNameSimple(name);
5250
}

0 commit comments

Comments
 (0)