VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/avrt.h@ 53201

最後變更 在這個檔案從53201是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.8 KB
 
1/*
2 * avrt definitions
3 *
4 * Copyright 2009 Maarten Lankhorst
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 *
20 */
21
22#ifndef _AVRT_
23#define _AVRT_
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29typedef enum _AVRT_PRIORITY
30{
31 AVRT_PRIORITY_LOW = -1,
32 AVRT_PRIORITY_NORMAL,
33 AVRT_PRIORITY_HIGH,
34 AVRT_PRIORITY_CRITICAL
35} AVRT_PRIORITY, *PAVRT_PRIORITY;
36
37/* Windows compiler is more lax */
38#define THREAD_ORDER_GROUP_INFINITE_TIMEOUT ((void*)((LONG_PTR)-1))
39
40HANDLE WINAPI AvSetMmThreadCharacteristicsA(LPCSTR TaskName, LPDWORD TaskIndex);
41HANDLE WINAPI AvSetMmThreadCharacteristicsW(LPCWSTR TaskName, LPDWORD TaskIndex);
42#define AvSetMmThreadCharacteristics WINELIB_NAME_AW(AvSetMmThreadCharacteristics)
43
44HANDLE WINAPI AvSetMmMaxThreadCharacteristicsA(LPCSTR FirstTask, LPCSTR SecondTask, LPDWORD TaskIndex);
45HANDLE WINAPI AvSetMmMaxThreadCharacteristicsW(LPCSTR FirstTask, LPCSTR SecondTask, LPDWORD TaskIndex);
46#define AvSetMmMaxThreadCharacteristics WINELIB_NAME_AW(AvSetMmMaxThreadCharacteristics)
47
48BOOL WINAPI AvRevertMmThreadCharacteristics(HANDLE AvrtHandle);
49BOOL WINAPI AvSetMmThreadPriority(HANDLE AvrtHandle, AVRT_PRIORITY Priority);
50BOOL WINAPI AvRtCreateThreadOrderingGroup(
51 PHANDLE Context, PLARGE_INTEGER Period,
52 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout);
53
54BOOL WINAPI AvRtCreateThreadOrderingGroupExA(
55 PHANDLE Context, PLARGE_INTEGER Period,
56 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout,
57 LPCSTR TaskName);
58BOOL WINAPI AvRtCreateThreadOrderingGroupExW(
59 PHANDLE Context, PLARGE_INTEGER Period,
60 GUID *ThreadOrderingGuid, PLARGE_INTEGER Timeout,
61 LPCSTR TaskName);
62#define AvRtCreateThreadOrderingGroupEx WINELIB_NAME_AW(AvRtCreateThreadOrderingGroupEx)
63
64BOOL WINAPI AvRtJoinThreadOrderingGroup(PHANDLE Context, GUID *ThreadOrderingGuid, BOOL Before);
65BOOL WINAPI AvRtWaitOnThreadOrderingGroup(HANDLE Context);
66BOOL WINAPI AvRtLeaveThreadOrderingGroup(HANDLE Context);
67BOOL WINAPI AvRtDeleteThreadOrderingGroup(HANDLE Context);
68BOOL WINAPI AvQuerySystemResponsiveness(HANDLE AvrtHandle, PULONG SystemResponsivenessValue);
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /*_AVRT_*/
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette