]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/abi/thread.rs
SGX target: Expose thread id function in os module
[rust.git] / src / libstd / sys / sgx / abi / thread.rs
index 86fe09d003520c5477152a3eddc2605a655cc5d7..c17fa2d00159ee305a1db0df35a248e714b4b350 100644 (file)
@@ -4,6 +4,7 @@
 /// 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() }