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 850014d5ba
commit 3beb1e3c2a

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