12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef RTC_BASE_SYSTEM_THREAD_REGISTRY_H_
- #define RTC_BASE_SYSTEM_THREAD_REGISTRY_H_
- #include "rtc_base/location.h"
- namespace webrtc {
- class ScopedRegisterThreadForDebugging {
- public:
- #if defined(WEBRTC_ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD)
- explicit ScopedRegisterThreadForDebugging(rtc::Location location);
- ~ScopedRegisterThreadForDebugging();
- #else
- explicit ScopedRegisterThreadForDebugging(rtc::Location) {}
- #endif
-
-
- ScopedRegisterThreadForDebugging(const ScopedRegisterThreadForDebugging&) =
- delete;
- ScopedRegisterThreadForDebugging(ScopedRegisterThreadForDebugging&&) = delete;
- ScopedRegisterThreadForDebugging& operator=(
- const ScopedRegisterThreadForDebugging&) = delete;
- ScopedRegisterThreadForDebugging& operator=(
- ScopedRegisterThreadForDebugging&&) = delete;
- };
- #if defined(WEBRTC_ANDROID) && !defined(WEBRTC_CHROMIUM_BUILD)
- void PrintStackTracesOfRegisteredThreads();
- #else
- inline void PrintStackTracesOfRegisteredThreads() {}
- #endif
- }
- #endif
|