Index: runtime/vm/os_thread_macos.cc |
diff --git a/runtime/vm/os_thread_macos.cc b/runtime/vm/os_thread_macos.cc |
index 6a9aca22cd58317ef9b058668dc4fc72f2d8b9d9..bbac8a146bd05d96a9e8f3c3895e4f854b8550df 100644 |
--- a/runtime/vm/os_thread_macos.cc |
+++ b/runtime/vm/os_thread_macos.cc |
@@ -94,9 +94,6 @@ int OSThread::Start(ThreadStartFunction function, uword parameter) { |
int result = pthread_attr_init(&attr); |
RETURN_ON_PTHREAD_FAILURE(result); |
- result = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
- RETURN_ON_PTHREAD_FAILURE(result); |
- |
result = pthread_attr_setstacksize(&attr, OSThread::GetMaxStackSize()); |
RETURN_ON_PTHREAD_FAILURE(result); |
@@ -152,7 +149,7 @@ ThreadId OSThread::GetCurrentThreadId() { |
bool OSThread::Join(ThreadId id) { |
- return false; |
+ return pthread_join(id, NULL) == 0; |
} |