about summary refs log tree commit diff
path: root/src/libstd/sys_common/mutex.rs
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2018-09-05 16:19:35 -0700
committerJethro Beekman <jethro@fortanix.com>2018-12-07 11:26:51 +0530
commit8d6edc9f8f71075c55fad3c5ca5a7e28b5e01400 (patch)
tree4341f8c3136f48d7f39731878693d3817d656835 /src/libstd/sys_common/mutex.rs
parent1e44e2de6c302855c1da75f79227fca743d9b209 (diff)
downloadrust-8d6edc9f8f71075c55fad3c5ca5a7e28b5e01400.tar.gz
rust-8d6edc9f8f71075c55fad3c5ca5a7e28b5e01400.zip
SGX target: implement synchronization primitives and threading
Diffstat (limited to 'src/libstd/sys_common/mutex.rs')
-rw-r--r--src/libstd/sys_common/mutex.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys_common/mutex.rs b/src/libstd/sys_common/mutex.rs
index c6d531c7a1a..87684237638 100644
--- a/src/libstd/sys_common/mutex.rs
+++ b/src/libstd/sys_common/mutex.rs
@@ -27,6 +27,7 @@ impl Mutex {
     /// Also, until `init` is called, behavior is undefined if this
     /// mutex is ever used reentrantly, i.e., `raw_lock` or `try_lock`
     /// are called by the thread currently holding the lock.
+    #[unstable(feature = "sys_internals", issue = "0")] // FIXME: min_const_fn
     pub const fn new() -> Mutex { Mutex(imp::Mutex::new()) }
 
     /// Prepare the mutex for use.