chromium/third_party/webrtc/rtc_base/platform_thread_types.cc

/*
 *  Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#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"

// The SetThreadDescription API was brought in version 1607 of Windows 10.
// For compatibility with various versions of winuser and avoid clashing with
// a potentially defined type, we use the RTC_ prefix.
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) {}

}  // namespace rtc