Bug 1393710 - Add thread name into NS_DebugBreak for better debugging. r=froydnj

MozReview-Commit-ID: AvqajMgtpuh
This commit is contained in:
James Cheng
2017-08-30 11:13:50 +08:00
parent d6754e7e58
commit 4a9ad4ef67
3 changed files with 18 additions and 1 deletions

View File

@@ -33,6 +33,12 @@ using namespace mozilla;
static MOZ_THREAD_LOCAL(bool) sTLSIsMainThread;
static MOZ_THREAD_LOCAL(PRThread*) gTlsCurrentVirtualThread;
bool
NS_IsMainThreadTLSInitialized()
{
return sTLSIsMainThread.initialized();
}
bool
NS_IsMainThread()
{