diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-10-29 17:02:37 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-10-29 17:02:37 -0700 |
| commit | 4a318d6e0f632d1915e4475325ededb94f6eb42c (patch) | |
| tree | 2d9c4a543e77eb6e5176eaf8f2cf6272dd2acb16 | |
| parent | 611c94d984c1c062d6e123d986c0511443900850 (diff) | |
| download | rust-4a318d6e0f632d1915e4475325ededb94f6eb42c.tar.gz rust-4a318d6e0f632d1915e4475325ededb94f6eb42c.zip | |
rt: Remove rust_thread::detach
| -rw-r--r-- | src/rt/sync/rust_thread.cpp | 9 | ||||
| -rw-r--r-- | src/rt/sync/rust_thread.h | 1 |
2 files changed, 0 insertions, 10 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 -} diff --git a/src/rt/sync/rust_thread.h b/src/rt/sync/rust_thread.h index cad87e514b5..257eefceb43 100644 --- a/src/rt/sync/rust_thread.h +++ b/src/rt/sync/rust_thread.h @@ -33,7 +33,6 @@ class rust_thread { virtual void run() = 0; void join(); - void detach(); }; #endif /* RUST_THREAD_H */ |
