Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
fb8934d4
Commit
fb8934d4
authored
24 years ago
by
Slava Monich
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implementation of Get/SetThreadPriorityBoost.
parent
1ada63bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/kernel/kernel32.spec
+2
-2
2 additions, 2 deletions
dlls/kernel/kernel32.spec
include/winbase.h
+2
-0
2 additions, 0 deletions
include/winbase.h
scheduler/thread.c
+36
-0
36 additions, 0 deletions
scheduler/thread.c
with
40 additions
and
2 deletions
dlls/kernel/kernel32.spec
+
2
−
2
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
...
...
This diff is collapsed.
Click to expand it.
include/winbase.h
+
2
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
scheduler/thread.c
+
36
−
0
View file @
fb8934d4
...
...
@@ -573,6 +573,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)
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment