Chromium Code Reviews| Index: webrtc/modules/utility/interface/helpers_ios.h |
| diff --git a/webrtc/modules/utility/interface/helpers_ios.h b/webrtc/modules/utility/interface/helpers_ios.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8796e3da1ab8e827cec8e78610a00baa580aab9f |
| --- /dev/null |
| +++ b/webrtc/modules/utility/interface/helpers_ios.h |
| @@ -0,0 +1,37 @@ |
| +/* |
| + * Copyright (c) 2015 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. |
| + */ |
| + |
| +#ifndef WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |
| +#define WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |
| + |
| +#if defined(WEBRTC_IOS) |
| + |
| +#include <string> |
| + |
| +namespace webrtc { |
| +namespace ios { |
| + |
| +bool CheckAndLogError(BOOL success, NSError* error); |
| + |
| +// Return thread ID as a string. |
| +std::string GetThreadId(); |
| + |
| +// Return thread ID as string suitable for debug logging. |
| +std::string GetThreadInfo(); |
| + |
| +// Returns [NSThread currentThread] description as string. |
| +// Example: <NSThread: 0x170066d80>{number = 1, name = main} |
| +std::string GetCurrentThreadDescription(); |
|
tkchin_webrtc
2015/07/08 19:41:14
I think you can get the name using pthread methods
henrika_webrtc
2015/07/09 12:58:02
Acknowledged.
|
| +} // namespace ios |
| +} // namespace webrtc |
| + |
| +#endif // defined(WEBRTC_IOS) |
| + |
| +#endif // WEBRTC_MODULES_UTILITY_INTERFACE_HELPERS_IOS_H_ |