test: fix dst thread in move_pthread_to_realtime_scheduling_class (osx)

Fixes the following tests on osx:
- del_wait
- no_events

Refs: #940
This commit is contained in:
Azat Khuzhin 2020-01-14 00:38:06 +03:00
parent 34d51e1bc9
commit 10504fcab9

View File

@ -92,7 +92,7 @@ static void move_pthread_to_realtime_scheduling_class(pthread_t pthread)
policy.constraint = (uint32_t)(10 * clock2abs);
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_policy_t)&policy,
THREAD_TIME_CONSTRAINT_POLICY_COUNT);