summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-04-22 14:26:26 -0700
committerJeremy Evans <code@jeremyevans.net>2022-04-22 14:26:26 -0700
commitc2d38a0d2d78f749fba47073b33106fd2e57767a (patch)
tree39d3499e049a52437250fd45903df891afef4ef3 /thread_pthread.c
parent79fa27acc452c50ae47936880f91424e729fda72 (diff)
downloadruby-c2d38a0d2d78f749fba47073b33106fd2e57767a.tar.gz
Fix build if UBF_TIMER == UBF_TIMER_PTHREAD
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index c1ec2067f5..b52efe6db9 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -2288,7 +2288,7 @@ static void *
timer_pthread_fn(void *p)
{
rb_vm_t *vm = p;
- pthread_t main_thread_id = vm->ractor.main_thread->thread_id;
+ pthread_t main_thread_id = vm->ractor.main_thread->nt->thread_id;
struct pollfd pfd;
int timeout = -1;
int ccp;