Ardour  9.0-pre0-1699-gfaebc7ab35
windows_mmcss.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 John Emmas <john@creativepost.co.uk>
3  * Copyright (C) 2015 Tim Mayberry <mojofunk@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef PBD_WINDOWS_MMCSS_H
21 #define PBD_WINDOWS_MMCSS_H
22 
23 #include <windows.h>
24 
25 #include <string>
26 
27 #include "pbd/signals.h"
28 #include "pbd/libpbd_visibility.h"
29 
30 namespace PBD {
31 
32 namespace MMCSS {
33 
40 };
41 
42 #ifndef ERROR_INVALID_TASK_NAME
46 };
47 #endif
48 
50 
52 
53 bool LIBPBD_API set_thread_characteristics (const std::string& task_name, HANDLE *task_handle);
54 
55 bool LIBPBD_API revert_thread_characteristics (HANDLE task_handle);
56 
58 
59 extern LIBPBD_API Signal<void()> MMCSSError;
60 
61 } // namespace MMCSS
62 
63 } // namespace PBD
64 
65 #endif // PBD_WINDOWS_MMCSS_H
#define LIBPBD_API
bool deinitialize()
@ ERROR_INVALID_TASK_INDEX
Definition: windows_mmcss.h:45
@ ERROR_INVALID_TASK_NAME
Definition: windows_mmcss.h:44
@ AVRT_PRIORITY_VERYLOW
Definition: windows_mmcss.h:35
@ AVRT_PRIORITY_NORMAL
Definition: windows_mmcss.h:37
@ AVRT_PRIORITY_HIGH
Definition: windows_mmcss.h:38
@ AVRT_PRIORITY_CRITICAL
Definition: windows_mmcss.h:39
bool set_thread_priority(HANDLE, AVRT_PRIORITY)
Signal< void()> MMCSSError
bool set_thread_characteristics(const std::string &task_name, HANDLE *task_handle)
bool revert_thread_characteristics(HANDLE task_handle)
bool initialize()
Definition: axis_view.h:42