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
3d7118bc
Commit
3d7118bc
authored
Jan 21, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement the ThreadAffinityMask query.
parent
5a24b42b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
thread.c
dlls/ntdll/thread.c
+20
-1
No files found.
dlls/ntdll/thread.c
View file @
3d7118bc
...
...
@@ -1194,6 +1194,26 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
}
}
return
status
;
case
ThreadAffinityMask
:
{
const
ULONG_PTR
affinity_mask
=
((
ULONG_PTR
)
1
<<
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
)
-
1
;
ULONG_PTR
affinity
=
0
;
SERVER_START_REQ
(
get_thread_info
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
req
->
tid_in
=
0
;
if
(
!
(
status
=
wine_server_call
(
req
)))
affinity
=
reply
->
affinity
&
affinity_mask
;
}
SERVER_END_REQ
;
if
(
status
==
STATUS_SUCCESS
)
{
if
(
data
)
memcpy
(
data
,
&
affinity
,
min
(
length
,
sizeof
(
affinity
)
));
if
(
ret_len
)
*
ret_len
=
min
(
length
,
sizeof
(
affinity
)
);
}
}
return
status
;
case
ThreadTimes
:
{
KERNEL_USER_TIMES
kusrt
;
...
...
@@ -1325,7 +1345,6 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
}
case
ThreadPriority
:
case
ThreadBasePriority
:
case
ThreadAffinityMask
:
case
ThreadImpersonationToken
:
case
ThreadEnableAlignmentFaultFixup
:
case
ThreadEventPair_Reusable
:
...
...
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