Index: runtime/vm/os_thread_linux.cc |
diff --git a/runtime/vm/os_thread_linux.cc b/runtime/vm/os_thread_linux.cc |
index 94bb823054519b63205779a5df53a77c96914496..c99189b1b764536e7266159a3bd2921e5f61d3b9 100644 |
--- a/runtime/vm/os_thread_linux.cc |
+++ b/runtime/vm/os_thread_linux.cc |
@@ -170,6 +170,11 @@ intptr_t OSThread::ThreadIdToIntPtr(ThreadId id) { |
} |
+ThreadId OSThread::ThreadIdFromIntPtr(intptr_t id) { |
+ return static_cast<ThreadId>(id); |
+} |
+ |
+ |
bool OSThread::Compare(ThreadId a, ThreadId b) { |
return pthread_equal(a, b) != 0; |
} |