We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 611c94d commit 4a318d6Copy full SHA for 4a318d6
src/rt/sync/rust_thread.cpp
@@ -63,12 +63,3 @@ rust_thread::join() {
63
#endif
64
thread = 0;
65
}
66
-
67
-void
68
-rust_thread::detach() {
69
-#if !defined(__WIN32__)
70
- // Don't leak pthread resources.
71
- // http://crosstantine.blogspot.com/2010/01/pthreadcreate-memory-leak.html
72
- CHECKED(pthread_detach(thread));
73
-#endif
74
-}
src/rt/sync/rust_thread.h
@@ -33,7 +33,6 @@ class rust_thread {
33
virtual void run() = 0;
34
35
void join();
36
- void detach();
37
};
38
39
#endif /* RUST_THREAD_H */
0 commit comments