Allow contexts sharing process space to run on different CPUs

This commit is contained in:
Jeremy Soller
2020-04-18 12:04:57 -06:00
parent fdf46d8043
commit 3c86af57b7

View File

@@ -115,9 +115,10 @@ pub fn clone(flags: CloneFlags, stack_base: usize) -> Result<ContextId> {
sigmask = context.sigmask;
umask = context.umask;
if flags.contains(CLONE_VM) {
cpu_id_opt = context.cpu_id;
}
// Uncomment to disable threads on different CPUs
// if flags.contains(CLONE_VM) {
// cpu_id_opt = context.cpu_id;
// }
arch = context.arch.clone();