Backed out changeset 9364cff86a7e (bug 1584568) by dev's request

--HG--
extra : rebase_source : 2e7ac1ee673380994328df1d6436235895d5b5e3
This commit is contained in:
Dorel Luca 2019-09-27 23:54:11 +03:00
parent e14ec25254
commit fd7b19e2eb
4 changed files with 0 additions and 21 deletions

View File

@ -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);

View File

@ -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();

View File

@ -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)

View File

@ -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 {
/**