Skip to contentSkip to conversation

Patch: Make Sched* struct fields public so they can be constructed

PATCH Applied Jussi Viiri 2 participants 2 messages Jun 7, 2022 – Jun 8, 2022

lore
Share & tools
lore
#0 lore raw

From 2c9979487f50ce3e6d38c7fa69f5ad5de4c60474 Mon Sep 17 00:00:00 2001
From: Jussi Viiri <[email protected]>
Date: Tue, 7 Jun 2022 21:00:19 +0300
Subject: [PATCH] Make Sched* struct fields public so they can be constructed

---
 src/sched.rs | 14 +++++++-------

 1 file changed, 7 insertions(+), 7 deletions(-)
src/sched.rs +0 -0
index bc069e4..2114d40 100644
@@ -8,25 +8,25 @@ use evl_sys::{

 pub struct SchedAttrs(pub(crate) evl_sched_attrs);

 pub struct SchedFifo {
-    prio: i32,
+    pub prio: i32,
 }

 pub struct SchedRR {
-    prio: i32,
+    pub prio: i32,
 }

 pub struct SchedWeak {
-    prio: i32,
+    pub prio: i32,
 }

 pub struct SchedQuota {
-    group: i32,
-    prio: i32,
+    pub group: i32,
+    pub prio: i32,
 }

 pub struct SchedTP {
-    part: i32,
-    prio: i32,
+    pub part: i32,
+    pub prio: i32,
 }

 pub trait PolicyParam {
--
2.25.1

#1 lore raw
Quoted 5 lines · Jussi Viiri via Xenomai

From 2c9979487f50ce3e6d38c7fa69f5ad5de4c60474 Mon Sep 17 00:00:00 2001
From: Jussi Viiri <[email protected]>
Date: Tue, 7 Jun 2022 21:00:19 +0300
Subject: [PATCH] Make Sched* struct fields public so they can be constructed

Merged, thanks.

Signature · 1 line
Philippe.