summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-23 20:53:56 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-23 20:55:57 -0700
commit2fd484172406a25e11f0f83000daeef7a287aebb (patch)
tree86fae1433c2cedd2ec9f3d510ee8e51d8a0ae823 /src/libstd/rt
parentad775be8b48f82d19356942a4fc6fcadc56d3e7e (diff)
downloadrust-2fd484172406a25e11f0f83000daeef7a287aebb.tar.gz
rust-2fd484172406a25e11f0f83000daeef7a287aebb.zip
core: Finish stabilizing the `mem` module.
* All of the *_val functions have gone from #[unstable] to #[stable]
* The overwrite and zeroed functions have gone from #[unstable] to #[stable]
* The uninit function is now deprecated, replaced by its stable counterpart,
  uninitialized

[breaking-change]
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs
index e25fa4734d5..6cc9604dc59 100644
--- a/src/libstd/rt/thread.rs
+++ b/src/libstd/rt/thread.rs
@@ -227,8 +227,8 @@ mod imp {
     pub type rust_thread_return = *u8;
 
     pub unsafe fn create(stack: uint, p: Box<proc():Send>) -> rust_thread {
-        let mut native: libc::pthread_t = mem::uninit();
-        let mut attr: libc::pthread_attr_t = mem::uninit();
+        let mut native: libc::pthread_t = mem::zeroed();
+        let mut attr: libc::pthread_attr_t = mem::zeroed();
         assert_eq!(pthread_attr_init(&mut attr), 0);
         assert_eq!(pthread_attr_setdetachstate(&mut attr,
                                                PTHREAD_CREATE_JOINABLE), 0);