mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Backout change b371db089894 (bug 1138620
) due to backout of bug 970307.
This commit is contained in:
parent
23c8a5e12c
commit
910ee84a4d
@ -13,7 +13,7 @@ interface nsIThread;
|
||||
/**
|
||||
* An interface for creating and locating nsIThread instances.
|
||||
*/
|
||||
[scriptable, uuid(04092259-4498-4c82-ac52-f9225eb114d0)]
|
||||
[scriptable, uuid(1be89eca-e2f7-453b-8d38-c11ba247f6f3)]
|
||||
interface nsIThreadManager : nsISupports
|
||||
{
|
||||
/**
|
||||
@ -65,11 +65,4 @@ interface nsIThreadManager : nsISupports
|
||||
* application process.
|
||||
*/
|
||||
readonly attribute boolean isMainThread;
|
||||
|
||||
/**
|
||||
* Informs the thread manager to not monitor the status of the current thread.
|
||||
* This method only works on platforms with Nuwa enabled; on other platforms,
|
||||
* it throws an error.
|
||||
*/
|
||||
[noscript] void setIgnoreThreadStatus();
|
||||
};
|
||||
|
@ -430,18 +430,13 @@ nsThreadManager::GetHighestNumberOfThreads()
|
||||
return mHighestNumberOfThreads;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
void
|
||||
nsThreadManager::SetIgnoreThreadStatus()
|
||||
{
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
GetCurrentThreadStatusInfo()->mIgnored = true;
|
||||
return NS_OK;
|
||||
#else
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
void
|
||||
nsThreadManager::SetThreadIdle(nsIRunnable **aReturnRunnable)
|
||||
{
|
||||
|
@ -72,6 +72,8 @@ public:
|
||||
}
|
||||
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
void SetIgnoreThreadStatus();
|
||||
|
||||
// |SetThreadWorking| and |SetThreadIdle| set status of thread that is
|
||||
// currently running. They get thread status information from TLS and pass
|
||||
// the information to |SetThreadIsWorking|.
|
||||
|
Loading…
Reference in New Issue
Block a user