Merge pull request #407 from imjfckm/schedule-in-sort

Add conditional reschedules to env_sort
This commit is contained in:
Robert Baldyga 2020-04-30 15:35:34 +02:00 committed by GitHub
commit 382247b5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,6 +275,7 @@ void env_sort(void *base, size_t num, size_t size,
break;
swap_fn(base + r, base + c, size);
}
env_cond_resched();
}
/* sort */
@ -289,5 +290,6 @@ void env_sort(void *base, size_t num, size_t size,
break;
swap_fn(base + r, base + c, size);
}
env_cond_resched();
}
}