Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3d14d24

Browse files
Remove unnecessary condemnation and suspension in PALCommonCleanup.
1 parent b409ad2 commit 3d14d24

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/pal/src/init/pal.cpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,11 @@ Parameters :
756756
void
757757
PALCommonCleanup(BOOL full_cleanup)
758758
{
759-
static bool done = false;
759+
static bool cleanupDone = false;
760760

761-
if (!done)
761+
if (!cleanupDone)
762762
{
763-
done = true;
763+
cleanupDone = true;
764764

765765
PALSetShutdownIntent();
766766

@@ -773,15 +773,6 @@ PALCommonCleanup(BOOL full_cleanup)
773773
#ifdef _DEBUG
774774
PROCDumpThreadList();
775775
#endif
776-
777-
TRACE("About to suspend every other thread\n");
778-
779-
/* prevent other threads from acquiring signaled objects */
780-
PROCCondemnOtherThreads();
781-
/* prevent other threads from using services we're shutting down */
782-
PROCSuspendOtherThreads();
783-
784-
TRACE("Every other thread suspended until exit\n");
785776
}
786777
}
787778

0 commit comments

Comments
 (0)