Move MMCSS related utility functions into PBD namespace

In preparation for moving to libpbd
This commit is contained in:
Tim Mayberry 2015-09-14 12:18:05 +10:00
parent f58e3abdbe
commit d76fe212b7
5 changed files with 24 additions and 18 deletions

View file

@ -28,7 +28,7 @@ typedef HANDLE (WINAPI* AvSetMmThreadCharacteristicsA_t)(LPCSTR TaskName,
typedef BOOL (WINAPI* AvRevertMmThreadCharacteristics_t)(HANDLE AvrtHandle);
typedef BOOL (WINAPI* AvSetMmThreadPriority_t)(
HANDLE AvrtHandle, mmcss::AVRT_PRIORITY Priority);
HANDLE AvrtHandle, PBD::MMCSS::AVRT_PRIORITY Priority);
static HMODULE avrt_dll = NULL;
@ -36,8 +36,9 @@ static AvSetMmThreadCharacteristicsA_t AvSetMmThreadCharacteristicsA = NULL;
static AvRevertMmThreadCharacteristics_t AvRevertMmThreadCharacteristics = NULL;
static AvSetMmThreadPriority_t AvSetMmThreadPriority = NULL;
namespace PBD {
namespace mmcss {
namespace MMCSS {
bool
initialize ()
@ -174,4 +175,6 @@ set_thread_priority (HANDLE task_handle, AVRT_PRIORITY priority)
return true;
}
} // namespace mmcss
} // namespace MMCSS
} // namespace PBD