mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 01:36:23 -04:00
test: fix dst thread in move_pthread_to_realtime_scheduling_class (osx)
Fixes the following tests on osx: - del_wait - no_events Refs: #940 (cherry picked from commit 10504fcab927e8b226ef2e988b1b3f175c3e9f71)
This commit is contained in:
parent
265cbe1077
commit
d5d18a5644
@ -92,7 +92,7 @@ static void move_pthread_to_realtime_scheduling_class(pthread_t pthread)
|
|||||||
policy.constraint = (uint32_t)(10 * clock2abs);
|
policy.constraint = (uint32_t)(10 * clock2abs);
|
||||||
policy.preemptible = FALSE;
|
policy.preemptible = FALSE;
|
||||||
|
|
||||||
int kr = thread_policy_set(pthread_mach_thread_np(pthread_self()),
|
int kr = thread_policy_set(pthread_mach_thread_np(pthread),
|
||||||
THREAD_TIME_CONSTRAINT_POLICY,
|
THREAD_TIME_CONSTRAINT_POLICY,
|
||||||
(thread_policy_t)&policy,
|
(thread_policy_t)&policy,
|
||||||
THREAD_TIME_CONSTRAINT_POLICY_COUNT);
|
THREAD_TIME_CONSTRAINT_POLICY_COUNT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user