]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sys/sgx/thread.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / library / std / src / sys / sgx / thread.rs
index 67e2e8b59d397d8e14ce783c414fff0d39b8f07c..cbb8ba964018a687d7f07c76c5e5305f82faeaa1 100644 (file)
@@ -1,6 +1,8 @@
 #![cfg_attr(test, allow(dead_code))] // why is this necessary?
+use super::unsupported;
 use crate::ffi::CStr;
 use crate::io;
+use crate::num::NonZeroUsize;
 use crate::time::Duration;
 
 use super::abi::usercalls;
@@ -135,6 +137,10 @@ impl Thread {
     }
 }
 
+pub fn available_concurrency() -> io::Result<NonZeroUsize> {
+    unsupported()
+}
+
 pub mod guard {
     pub type Guard = !;
     pub unsafe fn current() -> Option<Guard> {