Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
5cdb1ff5
Commit
5cdb1ff5
authored
Mar 20, 2009
by
Simon Marlow
Browse files
Fix bug in setThreadAffinity() (Linux)
parent
77998ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/posix/OSThreads.c
View file @
5cdb1ff5
...
...
@@ -224,7 +224,7 @@ setThreadAffinity (nat n, nat m)
nproc
=
getNumberOfProcessors
();
CPU_ZERO
(
&
cs
);
for
(
i
=
n
;
i
<
nproc
;
i
+=
m
)
{
CPU_SET
(
n
,
&
cs
);
CPU_SET
(
i
,
&
cs
);
}
sched_setaffinity
(
0
,
sizeof
(
cpu_set_t
),
&
cs
);
}
...
...
Write
Preview
Supports
Markdown
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