Ardour  9.0-pre0-350-gf17a656217
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/libpbd_visibility.h"
28 
29 namespace PBD {
30 
31 namespace MMCSS {
32 
39 };
40 
41 #ifndef ERROR_INVALID_TASK_NAME
45 };
46 #endif
47 
49 
51 
52 bool LIBPBD_API set_thread_characteristics (const std::string& task_name, HANDLE *task_handle);
53 
54 bool LIBPBD_API revert_thread_characteristics (HANDLE task_handle);
55 
57 
58 } // namespace MMCSS
59 
60 } // namespace PBD
61 
62 #endif // PBD_WINDOWS_MMCSS_H
#define LIBPBD_API
bool deinitialize()
@ ERROR_INVALID_TASK_INDEX
Definition: windows_mmcss.h:44
@ ERROR_INVALID_TASK_NAME
Definition: windows_mmcss.h:43
@ AVRT_PRIORITY_VERYLOW
Definition: windows_mmcss.h:34
@ AVRT_PRIORITY_NORMAL
Definition: windows_mmcss.h:36
@ AVRT_PRIORITY_HIGH
Definition: windows_mmcss.h:37
@ AVRT_PRIORITY_CRITICAL
Definition: windows_mmcss.h:38
bool set_thread_priority(HANDLE, AVRT_PRIORITY)
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