mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
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:
parent
c2ee92f6c8
commit
1cc0689e53
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user