]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unix/scheduler/macosx/macosx.factor
unix.scheduler: small new vocab to get Unix scheduler info
[factor.git] / basis / unix / scheduler / macosx / macosx.factor
diff --git a/basis/unix/scheduler/macosx/macosx.factor b/basis/unix/scheduler/macosx/macosx.factor
new file mode 100644 (file)
index 0000000..4a1d6f5
--- /dev/null
@@ -0,0 +1,12 @@
+! Copyright (C) 2022 Cat Stevens.
+! See http://factorcode.org/license.txt for BSD license.
+USING: system vocabs.metadata ;
+IN: unix.scheduler
+
+CONSTANT: MOST_IDLE_SCHED_POLICY f
+
+: policy-priority-range ( policy -- * )
+    os bad-platform ;
+
+: priority-allowed? ( policy -- * )
+    os bad-platform ;