about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-10-29 21:26:20 -0700
committerbors <bors@rust-lang.org>2013-10-29 21:26:20 -0700
commite42e378f32e212997fc42281112b1c9c4c247de0 (patch)
tree6e28ca8700d152980e741243202fc1f65bbbddf8 /src/rt/sync/rust_thread.cpp
parentcd1661df297dabcc1a148234ab80c936d7c7fcfa (diff)
parentfce9d7fc37650a5138be180e955a25a7f29409bd (diff)
downloadrust-e42e378f32e212997fc42281112b1c9c4c247de0.tar.gz
rust-e42e378f32e212997fc42281112b1c9c4c247de0.zip
auto merge of #10163 : brson/rust/rtcxx, r=alexcrichton
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
-rw-r--r--src/rt/sync/rust_thread.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/rt/sync/rust_thread.cpp b/src/rt/sync/rust_thread.cpp
index a78153523d2..7223d187137 100644
--- a/src/rt/sync/rust_thread.cpp
+++ b/src/rt/sync/rust_thread.cpp
@@ -63,12 +63,3 @@ rust_thread::join() {
 #endif
    thread = 0;
 }
-
-void
-rust_thread::detach() {
-#if !defined(__WIN32__)
-    // Don't leak pthread resources.
-    // http://crosstantine.blogspot.com/2010/01/pthreadcreate-memory-leak.html
-    CHECKED(pthread_detach(thread));
-#endif
-}