author | Ben Turner <bent.mozilla@gmail.com> |
Wed, 03 Nov 2010 18:41:06 -0700 | |
changeset 56851 | 3be753e18f9750844cb10a64c391f9bcd2806726 |
parent 56850 | 734d89f63682c568d8f328c55caf9d83f2ec0507 |
child 56852 | 69b9eb5a67169bbdaaf75873161535558f7fc17a |
push id | 16714 |
push user | rsayre@mozilla.com |
push date | Thu, 04 Nov 2010 07:07:14 +0000 |
treeherder | mozilla-central@f7016571b472 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jst |
bugs | 609501, 580096 |
milestone | 2.0b8pre |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
xpcom/threads/nsIThreadManager.idl | file | annotate | diff | comparison | revisions | |
xpcom/threads/nsThreadManager.cpp | file | annotate | diff | comparison | revisions |
--- a/xpcom/threads/nsIThreadManager.idl +++ b/xpcom/threads/nsIThreadManager.idl @@ -40,17 +40,17 @@ [ptr] native PRThread(PRThread); 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 { /** * Create a new thread (a global, user PRThread). * * @param creationFlags * Reserved for future use. Pass 0. * @@ -84,9 +84,15 @@ interface nsIThreadManager : nsISupports */ readonly attribute nsIThread currentThread; /** * This attribute is true if the calling thread is the main thread of the * 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; };
--- a/xpcom/threads/nsThreadManager.cpp +++ b/xpcom/threads/nsThreadManager.cpp @@ -300,8 +300,16 @@ nsThreadManager::GetCurrentThread(nsIThr NS_IMETHODIMP nsThreadManager::GetIsMainThread(PRBool *result) { // This method may be called post-Shutdown *result = (PR_GetCurrentThread() == mMainPRThread); return NS_OK; } + +NS_IMETHODIMP +nsThreadManager::GetIsCycleCollectorThread(PRBool *result) +{ + // Not yet implemented. + *result = PR_FALSE; + return NS_OK; +}