rt: Remove rust_thread::detach

This commit is contained in:
Brian Anderson 2013-10-29 17:02:37 -07:00
parent 611c94d984
commit 4a318d6e0f
2 changed files with 0 additions and 10 deletions

View File

@ -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
}

View File

@ -33,7 +33,6 @@ class rust_thread {
virtual void run() = 0;
void join();
void detach();
};
#endif /* RUST_THREAD_H */