mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1476405: Part 5 - Create nsThread wrapper and use reasonable stack size for BackgroundHangMonitor. r=erahm
BackgroundHangMonitor is a special snowflake, and uses PR_CreateThread directly, for some reason. MozReview-Commit-ID: 2Qg28EqDwM7 --HG-- extra : rebase_source : b59ac1b42ae283a1bcabe4e24ac3df92a11de6e2 extra : intermediate-source : 771288dbf8529d45786b42a21dc66b180bb674ca extra : source : b2a99f50e642cc3dc41ab540e7639d2c39bbe75b
This commit is contained in:
parent
9408c8c02a
commit
6423b7be40
@ -268,7 +268,8 @@ BackgroundHangManager::BackgroundHangManager()
|
||||
|
||||
mHangMonitorThread = PR_CreateThread(
|
||||
PR_USER_THREAD, MonitorThread, this,
|
||||
PR_PRIORITY_LOW, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
|
||||
PR_PRIORITY_LOW, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD,
|
||||
nsIThreadManager::DEFAULT_STACK_SIZE);
|
||||
|
||||
MOZ_ASSERT(mHangMonitorThread, "Failed to create BHR monitor thread");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user