diff options
author | Sergey Fedorov <[email protected]> | 2022-05-22 11:02:03 +0800 |
---|---|---|
committer | <[email protected]> | 2022-05-22 15:02:03 +1200 |
commit | 539459abda3f4e086ca060620dee2586ebfed873 () | |
tree | b9a4f71f8a74bafb1b7afa81245688b553f255e4 /thread_pthread.c | |
parent | 84257244cd67e40daed274c01ff0a6929e1a2b67 (diff) |
Ruby31: add support for Darwin ppc/ppc64 (#5927)
* add coroutines for ppc & ppc64 * fix universal coroutine to include ppc & ppc64 * add powerpc*-darwin to configure.ac * fix thread_pthread for older systems
Notes: Merged-By: ioquatix <[email protected]>
-rw-r--r-- | thread_pthread.c | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -1765,10 +1765,23 @@ native_thread_native_thread_id(rb_thread_t *target_th) if (tid == 0) return Qnil; return INT2FIX(tid); #elif defined(__APPLE__) - uint64_t tid; - int e = pthread_threadid_np(target_th->nt->thread_id, &tid); - if (e != 0) rb_syserr_fail(e, "pthread_threadid_np"); - return ULL2NUM((unsigned long long)tid); #endif } # define USE_NATIVE_THREAD_NATIVE_THREAD_ID 1 |