Index: runtime/vm/os_thread_android.cc |
=================================================================== |
--- runtime/vm/os_thread_android.cc (revision 45815) |
+++ runtime/vm/os_thread_android.cc (working copy) |
@@ -116,9 +116,9 @@ |
static_cast<pthread_key_t>(-1); |
ThreadId OSThread::kInvalidThreadId = static_cast<ThreadId>(0); |
-ThreadLocalKey OSThread::CreateThreadLocal() { |
+ThreadLocalKey OSThread::CreateThreadLocal(ThreadDestructor destructor) { |
pthread_key_t key = kUnsetThreadLocalKey; |
- int result = pthread_key_create(&key, NULL); |
+ int result = pthread_key_create(&key, destructor); |
VALIDATE_PTHREAD_RESULT(result); |
ASSERT(key != kUnsetThreadLocalKey); |
return key; |