rt: Remove rust_thread::detach
This commit is contained in:
parent
611c94d984
commit
4a318d6e0f
@ -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
|
||||
}
|
||||
|
@ -33,7 +33,6 @@ class rust_thread {
|
||||
virtual void run() = 0;
|
||||
|
||||
void join();
|
||||
void detach();
|
||||
};
|
||||
|
||||
#endif /* RUST_THREAD_H */
|
||||
|
Loading…
Reference in New Issue
Block a user