mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Backed out changeset 9364cff86a7e (bug 1584568) by dev's request
--HG-- extra : rebase_source : 2e7ac1ee673380994328df1d6436235895d5b5e3
This commit is contained in:
parent
e14ec25254
commit
fd7b19e2eb
@ -462,16 +462,6 @@ nsresult nsThreadManager::DispatchToBackgroundThread(nsIRunnable* aEvent,
|
||||
return backgroundTarget->Dispatch(aEvent, aDispatchFlags);
|
||||
}
|
||||
|
||||
nsresult nsThreadManager::GetBackgroundEventTarget(nsIEventTarget** aEventTarget) {
|
||||
if (!mInitialized) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIEventTarget> et(mBackgroundEventTarget);
|
||||
et.forget(aEventTarget);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsThread* nsThreadManager::GetCurrentThread() {
|
||||
// read thread local storage
|
||||
void* data = PR_GetThreadPrivate(mCurThreadIndex);
|
||||
|
@ -56,8 +56,6 @@ class nsThreadManager : public nsIThreadManager {
|
||||
nsresult DispatchToBackgroundThread(nsIRunnable* aEvent,
|
||||
uint32_t aDispatchFlags);
|
||||
|
||||
nsresult GetBackgroundEventTarget(nsIEventTarget** aEventTarget);
|
||||
|
||||
// Returns the maximal number of threads that have been in existence
|
||||
// simultaneously during the execution of the thread manager.
|
||||
uint32_t GetHighestNumberOfThreads();
|
||||
|
@ -529,10 +529,6 @@ nsresult NS_DispatchToBackgroundThread(nsIRunnable* aEvent,
|
||||
return nsThreadManager::get().DispatchToBackgroundThread(aEvent, aDispatchFlags);
|
||||
}
|
||||
|
||||
nsresult NS_GetBackgroundEventTarget(nsIEventTarget** aEventTarget) {
|
||||
return nsThreadManager::get().GetBackgroundEventTarget(aEventTarget);
|
||||
}
|
||||
|
||||
// nsAutoLowPriorityIO
|
||||
nsAutoLowPriorityIO::nsAutoLowPriorityIO() {
|
||||
#if defined(XP_WIN)
|
||||
|
@ -1706,11 +1706,6 @@ extern nsresult NS_DispatchToBackgroundThread(already_AddRefed<nsIRunnable> aEve
|
||||
extern nsresult NS_DispatchToBackgroundThread(nsIRunnable* aEvent,
|
||||
uint32_t aDispatchFlags = NS_DISPATCH_NORMAL);
|
||||
|
||||
/**
|
||||
* Get the event target that NS_DispatchToBackgroundThread uses.
|
||||
*/
|
||||
extern nsresult NS_GetBackgroundEventTarget(nsIEventTarget** aEventTarget);
|
||||
|
||||
namespace mozilla {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user