Skip to content

Commit

Permalink
Set the memory collector thread priority to background
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldJohnKing committed Jan 5, 2022
1 parent 58069c3 commit 85f5e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cma/cma_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ int CmaGetReservedHugePagesCount(void)
void CmaCreateMemoryCollectorThread(void)
{
memoryCollectorThread = CreateThread(NULL, 0, MemoryAllocatorThread, NULL, 0, NULL);
SetThreadPriority(memoryCollectorThread, THREAD_MODE_BACKGROUND_BEGIN);
}

void CmaTerminateMemoryCollectorThread(void)
Expand Down

0 comments on commit 85f5e48

Please sign in to comment.