summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLuke Gruber <luke.gruber@shopify.com>2025-12-12 14:47:43 -0500
committerGitHub <noreply@github.com>2025-12-12 14:47:43 -0500
commit3add3db797c4216423fdaa4bef6e2ee3c7630303 (patch)
tree449d300354e1aa957c0922cc1be9c6f25310d5ce /internal
parent5903ed7ba9ca60546aa0dd97e92b3d381b7918d3 (diff)
Fewer calls to `GET_EC()` and `GET_THREAD()` (#15506)
The changes are to `io.c` and `thread.c`. I changed the API of 2 exported thread functions from `internal/thread.h` that didn't look like they had any use in C extensions: * rb_thread_wait_for_single_fd * rb_thread_io_wait I didn't change the following exported internal function because it's used in C extensions: * rb_thread_fd_select I added a comment to note that this function, although internal, is used in C extensions.
Diffstat (limited to 'internal')
-rw-r--r--internal/thread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/thread.h b/internal/thread.h
index 21efeeebc0..ea891b4372 100644
--- a/internal/thread.h
+++ b/internal/thread.h
@@ -56,8 +56,8 @@ VALUE rb_mutex_owned_p(VALUE self);
VALUE rb_exec_recursive_outer_mid(VALUE (*f)(VALUE g, VALUE h, int r), VALUE g, VALUE h, ID mid);
void ruby_mn_threads_params(void);
-int rb_thread_io_wait(struct rb_io *io, int events, struct timeval * timeout);
-int rb_thread_wait_for_single_fd(int fd, int events, struct timeval * timeout);
+int rb_thread_io_wait(struct rb_thread_struct *th, struct rb_io *io, int events, struct timeval * timeout);
+int rb_thread_wait_for_single_fd(struct rb_thread_struct *th, int fd, int events, struct timeval * timeout);
size_t rb_thread_io_close_interrupt(struct rb_io *);
void rb_thread_io_close_wait(struct rb_io *);