зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204837: Make ClosingService thread Nuwa-friedly. r=khuey
This commit is contained in:
Родитель
83f841e709
Коммит
d27129032a
|
@ -6,6 +6,9 @@
|
|||
|
||||
#include "ClosingService.h"
|
||||
#include "nsIOService.h"
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
#include "ipc/Nuwa.h"
|
||||
#endif
|
||||
|
||||
class ClosingLayerSecret
|
||||
{
|
||||
|
@ -200,6 +203,13 @@ ClosingService::ShutdownInternal()
|
|||
void
|
||||
ClosingService::ThreadFunc()
|
||||
{
|
||||
PR_SetCurrentThreadName("Closing Service");
|
||||
#ifdef MOZ_NUWA_PROCESS
|
||||
if (IsNuwaProcess()) {
|
||||
NuwaMarkCurrentThread(nullptr, nullptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
PRFileDesc *fd;
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче