mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1204837: Make ClosingService thread Nuwa-friedly. r=khuey
This commit is contained in:
parent
d6092c6f9e
commit
edc540a129
@ -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;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user