summaryrefslogtreecommitdiff
path: root/thread_pthread.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-05-24 16:39:45 +0900
committerKoichi Sasada <ko1@atdot.net>2022-05-24 17:50:49 +0900
commit08cee2bf804d22dc51002b0df023aea7ec044d8d (patch)
tree9e9d8e959858bec1c0588f939e8c8be4ef9dc3b4 /thread_pthread.h
parent78785fb99041521fc5da01ffa6ab3f4f3936ce06 (diff)
downloadruby-08cee2bf804d22dc51002b0df023aea7ec044d8d.tar.gz
altstack is native thread's attr
Move th->altstack to th->nt->altstack.
Diffstat (limited to 'thread_pthread.h')
-rw-r--r--thread_pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/thread_pthread.h b/thread_pthread.h
index 8e8c1eb43d..ebca71b5cd 100644
--- a/thread_pthread.h
+++ b/thread_pthread.h
@@ -50,6 +50,10 @@ struct rb_native_thread {
rb_nativethread_cond_t intr; /* th->interrupt_lock */
rb_nativethread_cond_t readyq; /* use sched->lock */
} cond;
+
+#ifdef USE_SIGALTSTACK
+ void *altstack;
+#endif
};
#undef except