Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
fb8934d4
Commit
fb8934d4
authored
Jul 08, 2000
by
Slava Monich
Committed by
Alexandre Julliard
Jul 08, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of Get/SetThreadPriorityBoost.
parent
1ada63bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
2 deletions
+40
-2
kernel32.spec
dlls/kernel/kernel32.spec
+2
-2
winbase.h
include/winbase.h
+2
-0
thread.c
scheduler/thread.c
+36
-0
No files found.
dlls/kernel/kernel32.spec
View file @
fb8934d4
...
...
@@ -892,7 +892,7 @@ import ntdll.dll
874 stdcall GetFileAttributesExA(str long ptr) GetFileAttributesExA
875 stdcall GetFileAttributesExW(wstr long ptr) GetFileAttributesExW
876 stub GetProcessPriorityBoost
877 st
ub GetThreadPriorityBoost
877 st
dcall GetThreadPriorityBoost(long ptr) GetThreadPriorityBoost
878 stdcall InterlockedCompareExchange (ptr long long) InterlockedCompareExchange
879 stdcall InterlockedExchangeAdd (ptr long ) InterlockedExchangeAdd
880 stdcall IsProcessorFeaturePresent(long) IsProcessorFeaturePresent
...
...
@@ -908,7 +908,7 @@ import ntdll.dll
890 stdcall SetProcessAffinityMask(long long) SetProcessAffinityMask
891 stdcall SetProcessPriorityBoost(long long) SetProcessPriorityBoost
892 stub SetThreadIdealProcessor
893 st
ub
SetThreadPriorityBoost
893 st
dcall SetThreadPriorityBoost(long long)
SetThreadPriorityBoost
894 stdcall SetWaitableTimer(long ptr long ptr ptr long) SetWaitableTimer
895 stub SignalObjectAndWait
896 stub SwitchToFiber
...
...
include/winbase.h
View file @
fb8934d4
...
...
@@ -1463,6 +1463,7 @@ INT WINAPI GetTimeFormatW(LCID,DWORD,LPSYSTEMTIME,LPCWSTR,LPWSTR,INT);
BOOL
WINAPI
GetThreadContext
(
HANDLE
,
CONTEXT
*
);
LCID
WINAPI
GetThreadLocale
(
void
);
INT
WINAPI
GetThreadPriority
(
HANDLE
);
BOOL
WINAPI
GetThreadPriorityBoost
(
HANDLE
,
PBOOL
);
BOOL
WINAPI
GetThreadSelectorEntry
(
HANDLE
,
DWORD
,
LPLDT_ENTRY
);
BOOL
WINAPI
GetThreadTimes
(
HANDLE
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
,
LPFILETIME
);
BOOL
WINAPI
GetTokenInformation
(
HANDLE
,
TOKEN_INFORMATION_CLASS
,
LPVOID
,
DWORD
,
LPDWORD
);
...
...
@@ -1612,6 +1613,7 @@ DWORD WINAPI SetThreadAffinityMask(HANDLE,DWORD);
BOOL
WINAPI
SetThreadContext
(
HANDLE
,
const
CONTEXT
*
);
BOOL
WINAPI
SetThreadLocale
(
LCID
);
BOOL
WINAPI
SetThreadPriority
(
HANDLE
,
INT
);
BOOL
WINAPI
SetThreadPriorityBoost
(
HANDLE
,
BOOL
);
BOOL
WINAPI
SetThreadToken
(
PHANDLE
,
HANDLE
);
BOOL
WINAPI
SetTimeZoneInformation
(
const
LPTIME_ZONE_INFORMATION
);
BOOL
WINAPI
SetWaitableTimer
(
HANDLE
,
const
LARGE_INTEGER
*
,
LONG
,
PTIMERAPCROUTINE
,
LPVOID
,
BOOL
);
...
...
scheduler/thread.c
View file @
fb8934d4
...
...
@@ -574,6 +574,42 @@ BOOL WINAPI SetThreadPriority(
/**********************************************************************
* GetThreadPriorityBoost [KERNEL32.877] Returns priority boost for thread.
*
* Always reports that priority boost is disabled.
*
* RETURNS
* Success: TRUE.
* Failure: FALSE
*/
BOOL
WINAPI
GetThreadPriorityBoost
(
HANDLE
hthread
,
/* [in] Handle to thread */
PBOOL
pstate
)
/* [out] pointer to var that receives the boost state */
{
if
(
pstate
)
*
pstate
=
FALSE
;
return
NO_ERROR
;
}
/**********************************************************************
* SetThreadPriorityBoost [KERNEL32.893] Sets priority boost for thread.
*
* Priority boost is not implemented. Thsi function always returns
* FALSE and sets last error to ERROR_CALL_NOT_IMPLEMENTED
*
* RETURNS
* Always returns FALSE to indicate a failure
*/
BOOL
WINAPI
SetThreadPriorityBoost
(
HANDLE
hthread
,
/* [in] Handle to thread */
BOOL
disable
)
/* [in] TRUE to disable priority boost */
{
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/**********************************************************************
* SetThreadAffinityMask (KERNEL32.669)
*/
DWORD
WINAPI
SetThreadAffinityMask
(
HANDLE
hThread
,
DWORD
dwThreadAffinityMask
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment