mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
Move MMCSS related utility functions into PBD namespace
In preparation for moving to libpbd
This commit is contained in:
parent
f58e3abdbe
commit
d76fe212b7
5 changed files with 24 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue