diff options
Diffstat (limited to 'libc/bionic/pthread_key.cpp')
-rw-r--r-- | libc/bionic/pthread_key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread_key.cpp b/libc/bionic/pthread_key.cpp index 0356ccc29..53f0f1179 100644 --- a/libc/bionic/pthread_key.cpp +++ b/libc/bionic/pthread_key.cpp @@ -70,7 +70,7 @@ static inline bool KeyInValidRange(pthread_key_t key) { } static inline pthread_key_data_t* get_thread_key_data() { - return __get_thread()->key_data; + return __get_bionic_tls().key_data; } // Called from pthread_exit() to remove all pthread keys. This must call the destructor of |