summaryrefslogtreecommitdiffstats
path: root/rsnix/src/sched.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rsnix/src/sched.rs')
-rw-r--r--rsnix/src/sched.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/rsnix/src/sched.rs b/rsnix/src/sched.rs
index cfce58f..f48e210 100644
--- a/rsnix/src/sched.rs
+++ b/rsnix/src/sched.rs
@@ -282,7 +282,11 @@ pub fn spawn(entry: fn(), name: &str) -> Option<usize> {
282 }; 282 };
283 let ok = spawn_at(id, entry, name); 283 let ok = spawn_at(id, entry, name);
284 unlock(); 284 unlock();
285 if ok { Some(id) } else { None } 285 if ok {
286 Some(id)
287 } else {
288 None
289 }
286} 290}
287 291
288unsafe fn reap(id: usize) { 292unsafe fn reap(id: usize) {