@@ -2172,8 +2172,8 @@ void thread_base::start()
21722172void thread_base::initialize (void (*error_cb)())
21732173{
21742174#ifndef _WIN32
2175- #ifdef ANDROID
2176- m_thread.release (pthread_self ());
2175+ #ifdef ANDROID
2176+ m_thread.release (pthread_self ());
21772177#else
21782178 m_thread.release (reinterpret_cast <u64 >(pthread_self ()));
21792179#endif
@@ -2622,7 +2622,7 @@ thread_base::~thread_base() noexcept
26222622 WaitForSingleObject (handle0, INFINITE);
26232623 CloseHandle (handle0);
26242624#elif defined(ANDROID)
2625- pthread_join (m_thread.load (), nullptr );
2625+ pthread_join (m_thread.load (), nullptr );
26262626#else
26272627 pthread_join (reinterpret_cast <pthread_t >(m_thread.load ()), nullptr );
26282628#endif
@@ -2697,11 +2697,10 @@ u64 thread_base::get_cycles()
26972697#else
26982698 clockid_t _clock;
26992699 struct timespec thread_time;
2700- pthread_t thread_id;
27012700#ifdef ANDROID
2702- thread_id = handle;
2701+ pthread_t thread_id = handle;
27032702#else
2704- thread_id = reinterpret_cast <pthread_t >(handle);
2703+ pthread_t thread_id = reinterpret_cast <pthread_t >(handle);
27052704#endif
27062705 if (!pthread_getcpuclockid (thread_id, &_clock) && !clock_gettime (_clock, &thread_time))
27072706 {
@@ -3326,7 +3325,7 @@ u64 thread_ctrl::get_tid()
33263325#ifdef _WIN32
33273326 return GetCurrentThreadId ();
33283327#elif defined(ANDROID)
3329- return static_cast <u64 >(pthread_self ());
3328+ return static_cast <u64 >(pthread_self ());
33303329#elif defined(__linux__)
33313330 return syscall (SYS_gettid);
33323331#else
0 commit comments