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/sys | |
| 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/sys')
| -rw-r--r-- | src/libstd/sys/sgx/abi/thread.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/sgx/abi/thread.rs b/src/libstd/sys/sgx/abi/thread.rs index 86fe09d0035..c17fa2d0015 100644 --- a/src/libstd/sys/sgx/abi/thread.rs +++ b/src/libstd/sys/sgx/abi/thread.rs @@ -4,6 +4,7 @@ use fortanix_sgx_abi::Tcs; /// all currently running threads in the enclave, and it is guaranteed to be /// constant for the lifetime of the thread. More specifically for SGX, there /// is a one-to-one correspondence of the ID to the address of the TCS. +#[unstable(feature = "sgx_platform", issue = "56975")] pub fn current() -> Tcs { extern "C" { fn get_tcs_addr() -> Tcs; } unsafe { get_tcs_addr() } |
