#include "rtc_base/platform_thread_types.h"
#if defined(WEBRTC_LINUX)
#include <sys/prctl.h>
#include <sys/syscall.h>
#endif
#if defined(WEBRTC_WIN)
#include "rtc_base/arraysize.h"
typedef HRESULT(WINAPI* RTC_SetThreadDescription)(HANDLE hThread,
PCWSTR lpThreadDescription);
#endif
#if defined(WEBRTC_FUCHSIA)
#include <string.h>
#include <zircon/syscalls.h>
#include "rtc_base/checks.h"
#endif
namespace rtc {
PlatformThreadId CurrentThreadId() { … }
PlatformThreadRef CurrentThreadRef() { … }
bool IsThreadRefEqual(const PlatformThreadRef& a, const PlatformThreadRef& b) { … }
void SetCurrentThreadName(const char* name) { … }
}