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..bcac82829670b1f7970c1c8cfc92941a1955a131 100644 |
--- a/runtime/vm/os_thread_macos.cc |
+++ b/runtime/vm/os_thread_macos.cc |
@@ -162,6 +162,11 @@ intptr_t OSThread::ThreadIdToIntPtr(ThreadId id) { |
} |
+ThreadId OSThread::ThreadIdFromIntPtr(intptr_t id) { |
+ return reinterpret_cast<ThreadId>(id); |
+} |
+ |
+ |
bool OSThread::Compare(ThreadId a, ThreadId b) { |
return pthread_equal(a, b) != 0; |
} |