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
a764fe89
Commit
a764fe89
authored
Nov 20, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use the correct thread id to set affinity.
parent
c34ca48b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
thread.c
server/thread.c
+2
-2
No files found.
server/thread.c
View file @
a764fe89
...
...
@@ -415,7 +415,7 @@ void set_thread_affinity( struct thread *thread, affinity_t affinity )
return
;
}
#ifdef HAVE_SCHED_SETAFFINITY
if
(
thread
->
unix_
p
id
!=
-
1
)
if
(
thread
->
unix_
t
id
!=
-
1
)
{
cpu_set_t
set
;
int
i
;
...
...
@@ -425,7 +425,7 @@ void set_thread_affinity( struct thread *thread, affinity_t affinity )
for
(
i
=
0
,
mask
=
1
;
mask
;
i
++
,
mask
<<=
1
)
if
(
affinity
&
mask
)
CPU_SET
(
i
,
&
set
);
if
(
!
sched_setaffinity
(
thread
->
unix_
p
id
,
sizeof
(
set
),
&
set
))
if
(
!
sched_setaffinity
(
thread
->
unix_
t
id
,
sizeof
(
set
),
&
set
))
thread
->
affinity
=
affinity
;
else
file_set_error
();
...
...
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