mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08: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
This commit is contained in:
parent
34d51e1bc9
commit
10504fcab9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user