From 4a318d6e0f632d1915e4475325ededb94f6eb42c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Tue, 29 Oct 2013 17:02:37 -0700 Subject: rt: Remove rust_thread::detach --- src/rt/sync/rust_thread.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/rt/sync/rust_thread.cpp') 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 -} -- cgit 1.4.1-3-g733a5