Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
60cae6e2
Commit
60cae6e2
authored
Sep 07, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented kernel32:SetThreadPriority on top of ntdll's equivalent
functions.
parent
856221c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
9 deletions
+25
-9
thread.c
dlls/kernel/thread.c
+11
-8
thread.c
dlls/ntdll/thread.c
+14
-1
No files found.
dlls/kernel/thread.c
View file @
60cae6e2
...
@@ -416,16 +416,19 @@ BOOL WINAPI SetThreadPriority(
...
@@ -416,16 +416,19 @@ BOOL WINAPI SetThreadPriority(
HANDLE
hthread
,
/* [in] Handle to thread */
HANDLE
hthread
,
/* [in] Handle to thread */
INT
priority
)
/* [in] Thread priority level */
INT
priority
)
/* [in] Thread priority level */
{
{
BOOL
ret
;
DWORD
prio
=
priority
;
SERVER_START_REQ
(
set_thread_info
)
NTSTATUS
status
;
status
=
NtSetInformationThread
(
hthread
,
ThreadBasePriority
,
&
prio
,
sizeof
(
prio
));
if
(
status
)
{
{
req
->
handle
=
hthread
;
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
req
->
priority
=
priority
;
return
FALSE
;
req
->
mask
=
SET_THREAD_INFO_PRIORITY
;
ret
=
!
wine_server_call_err
(
req
);
}
}
SERVER_END_REQ
;
return
ret
;
return
TRUE
;
}
}
...
...
dlls/ntdll/thread.c
View file @
60cae6e2
...
@@ -634,12 +634,25 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
...
@@ -634,12 +634,25 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
status
=
wine_server_call
(
req
);
status
=
wine_server_call
(
req
);
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
}
return
status
;
return
status
;
case
ThreadBasePriority
:
{
const
DWORD
*
pprio
=
data
;
if
(
length
!=
sizeof
(
DWORD
))
return
STATUS_INVALID_PARAMETER
;
SERVER_START_REQ
(
set_thread_info
)
{
req
->
handle
=
handle
;
req
->
priority
=
*
pprio
;
req
->
mask
=
SET_THREAD_INFO_PRIORITY
;
status
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
}
}
return
status
;
case
ThreadBasicInformation
:
case
ThreadBasicInformation
:
case
ThreadTimes
:
case
ThreadTimes
:
case
ThreadPriority
:
case
ThreadPriority
:
case
ThreadBasePriority
:
case
ThreadAffinityMask
:
case
ThreadAffinityMask
:
case
ThreadDescriptorTableEntry
:
case
ThreadDescriptorTableEntry
:
case
ThreadEnableAlignmentFaultFixup
:
case
ThreadEnableAlignmentFaultFixup
:
...
...
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