Bug 1575883 - Remove the code that created a couple threads at startup, in Gecko. r=kinetik

Differential Revision: https://phabricator.services.mozilla.com/D45688

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Adenot 2019-10-11 16:01:24 +00:00
parent c2ee92f6c8
commit 1cc0689e53
3 changed files with 0 additions and 23 deletions

View File

@ -1779,11 +1779,6 @@ mozilla::ipc::IPCResult ContentChild::RecvSetProcessSandbox(
if (!Preferences::GetBool("media.cubeb.sandbox")) {
Unused << CubebUtils::GetCubebContext();
}
# if defined(XP_LINUX)
else {
CubebUtils::InitAudioThreads();
}
# endif
}
if (sandboxEnabled) {

View File

@ -81,9 +81,6 @@ extern void audioipc_server_stop(void*);
// These functions are provided by audioipc-client crate
extern int audioipc_client_init(cubeb**, const char*,
const AudioIpcInitParams*);
#ifdef XP_LINUX
extern void audioipc_init_threads(const AudioIpcInitParams*);
#endif
}
namespace mozilla {
@ -445,18 +442,6 @@ ipc::FileDescriptor CreateAudioIPCConnection() {
#endif
}
#if defined(XP_LINUX) && !defined(MOZ_WIDGET_ANDROID)
void InitAudioThreads() {
AudioIpcInitParams initParams;
initParams.mPoolSize = sAudioIPCPoolSize;
initParams.mStackSize = sAudioIPCStackSize;
initParams.mThreadCreateCallback = [](const char* aName) {
PROFILER_REGISTER_THREAD(aName);
};
audioipc_init_threads(&initParams);
}
#endif
cubeb* GetCubebContextUnlocked() {
sMutex.AssertCurrentThreadOwns();
if (sCubebForceNullContext) {

View File

@ -23,9 +23,6 @@ typedef cubeb_devid AudioDeviceID;
// Initialize Audio Library. Some Audio backends require initializing the
// library before using it.
void InitLibrary();
# ifdef XP_LINUX
void InitAudioThreads();
# endif
// Shutdown Audio Library. Some Audio backends require shutting down the
// library after using it.