diff options
author | Koichi Sasada <[email protected]> | 2024-11-06 02:31:29 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2024-11-08 18:02:46 +0900 |
commit | 97aaf6f760259c639dc3ceb3a80fe82411649569 () | |
tree | 055530970161a2d462e3174d40f71a5e19f9a2ae /thread.c | |
parent | 0d63b9b4a49d7477b5201f5d40ecd64916cd0e43 (diff) |
introduce `rb_ec_check_ints()`
to avoid TLS issue with N:M threads.
Notes: Merged: https://.com/ruby/ruby/pull/11142
-rw-r--r-- | thread.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1416,6 +1416,12 @@ rb_thread_wait_for(struct timeval time) sleep_hrtime(th, rb_timeval2hrtime(&time), SLEEP_SPURIOUS_CHECK); } /* * CAUTION: This function causes thread switching. * rb_thread_check_ints() check ruby's interrupts. @@ -1426,7 +1432,7 @@ rb_thread_wait_for(struct timeval time) void rb_thread_check_ints(void) { - RUBY_VM_CHECK_INTS_BLOCKING(GET_EC()); } /* |