diff options
| author | Jethro Beekman <jethro@fortanix.com> | 2019-03-05 13:32:41 -0800 |
|---|---|---|
| committer | Jethro Beekman <jethro@fortanix.com> | 2019-03-05 13:35:57 -0800 |
| commit | 67eabc6bec67e1953cb944f0654fada3151b7e21 (patch) | |
| tree | b2a860fd1b21a7fd5a297d4939f755c7bbb31e8e /src/libstd/os | |
| parent | f22dca0a1bef4141e75326caacc3cd59f3d5be8e (diff) | |
| download | rust-67eabc6bec67e1953cb944f0654fada3151b7e21.tar.gz rust-67eabc6bec67e1953cb944f0654fada3151b7e21.zip | |
SGX target: Expose thread id function in os module
Diffstat (limited to 'src/libstd/os')
| -rw-r--r-- | src/libstd/os/fortanix_sgx/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstd/os/fortanix_sgx/mod.rs b/src/libstd/os/fortanix_sgx/mod.rs index bca22e717d7..4e30b1edd15 100644 --- a/src/libstd/os/fortanix_sgx/mod.rs +++ b/src/libstd/os/fortanix_sgx/mod.rs @@ -43,3 +43,8 @@ pub mod mem { } pub use crate::sys::ext::{io, arch, ffi}; + +/// Functions for querying thread-related information. +pub mod thread { + pub use crate::sys::abi::thread::current; +} |
