We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b845cc5 + 1294ef3 commit 56b1ac7Copy full SHA for 56b1ac7
src/syscalls/processor.rs
@@ -6,6 +6,11 @@ pub extern "C" fn sys_get_processor_count() -> usize {
6
get_processor_count().try_into().unwrap()
7
}
8
9
+#[hermit_macro::system]
10
+pub extern "C" fn sys_available_parallelism() -> usize {
11
+ get_processor_count().try_into().unwrap()
12
+}
13
+
14
/// Returns the processor frequency in MHz.
15
#[hermit_macro::system]
16
pub extern "C" fn sys_get_processor_frequency() -> u16 {
0 commit comments