about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-24 03:21:24 -0700
committerbors <bors@rust-lang.org>2014-05-24 03:21:24 -0700
commite72a21b2bb6b889a991229a966a9243b6d81e4d0 (patch)
tree4f0cc6ac953bdfd6629027f0dba0b0c6a2403b9d /src/libstd/rt
parent12467989c3562eee5d7556e20bdc5d0d115c2cf1 (diff)
parent2fd484172406a25e11f0f83000daeef7a287aebb (diff)
downloadrust-e72a21b2bb6b889a991229a966a9243b6d81e4d0.tar.gz
rust-e72a21b2bb6b889a991229a966a9243b6d81e4d0.zip
auto merge of #14392 : alexcrichton/rust/mem-updates, r=sfackler
* 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);