зеркало из https://github.com/mozilla/gecko-dev.git
Bug 609501 - Change nsIThreadManager for bug 580096. r=jst
This commit is contained in:
Родитель
a2e50c5839
Коммит
3526db0dbf
|
@ -45,7 +45,7 @@ interface nsIThread;
|
|||
/**
|
||||
* An interface for creating and locating nsIThread instances.
|
||||
*/
|
||||
[scriptable, uuid(056216f5-8803-46b4-9199-d95bc1f0446f)]
|
||||
[scriptable, uuid(487c10bf-0a22-4148-89fa-790d819dd559)]
|
||||
interface nsIThreadManager : nsISupports
|
||||
{
|
||||
/**
|
||||
|
@ -89,4 +89,10 @@ interface nsIThreadManager : nsISupports
|
|||
* application process.
|
||||
*/
|
||||
readonly attribute boolean isMainThread;
|
||||
|
||||
/**
|
||||
* This attribute is true if the calling thread is the thread on which the
|
||||
* cycle collector runs.
|
||||
*/
|
||||
readonly attribute boolean isCycleCollectorThread;
|
||||
};
|
||||
|
|
|
@ -305,3 +305,11 @@ nsThreadManager::GetIsMainThread(PRBool *result)
|
|||
*result = (PR_GetCurrentThread() == mMainPRThread);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsThreadManager::GetIsCycleCollectorThread(PRBool *result)
|
||||
{
|
||||
// Not yet implemented.
|
||||
*result = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче