Bug 1204837: Make ClosingService thread Nuwa-friedly. r=khuey

This commit is contained in:
Cervantes Yu 2015-09-17 14:36:06 +08:00
parent d6092c6f9e
commit edc540a129

View File

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