feat(Core/Thread): move Processpriority to separated files (#5638)

This commit is contained in:
Kargatum
2021-06-03 00:18:24 +07:00
committed by GitHub
parent 0c478bfb68
commit 55bea7eb79
4 changed files with 109 additions and 147 deletions

View File

@@ -0,0 +1,17 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
* Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
*/
#ifndef _PROCESSPRIO_H
#define _PROCESSPRIO_H
#include "Define.h"
#include <string>
#define CONFIG_PROCESSOR_AFFINITY "UseProcessors"
#define CONFIG_HIGH_PRIORITY "ProcessPriority"
void AC_COMMON_API SetProcessPriority(std::string const& logChannel, uint32 affinity, bool highPriority);
#endif