From 2ebc7ba295a38604eb4e004c56d63e43fa4cd3e2 Mon Sep 17 00:00:00 2001 From: B I Mohammed Abbas Date: Mon, 14 Oct 2024 14:26:48 +0530 Subject: [PATCH] set_thread_policyand priority use realtime mechanism for vxworks --- src/vxworks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vxworks.rs b/src/vxworks.rs index d8831aa..87cf137 100644 --- a/src/vxworks.rs +++ b/src/vxworks.rs @@ -602,7 +602,7 @@ pub fn set_thread_priority_and_policy( // On macOS and iOS it is possible to set the priority // this way. if matches!(policy, ThreadSchedulePolicy::Realtime(_)) - || cfg!(any(target_os = "macos", target_os = "ios")) + || cfg!(any(target_os = "macos", target_os = "ios", target_os = "vxworks")) { // If the policy is a realtime one, the priority is set via // pthread_setschedparam.