summaryrefslogtreecommitdiff
path: root/thread_none.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-05-30 11:13:15 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2024-05-30 11:13:15 -0700
commitb13cf49036f0a454063cde25807785adc00f8995 (patch)
tree9d2268e44eab9fbb4ae3e35dd7817d9a449d6edb /thread_none.c
parente5a195edf62fe1bf7146a191da13fa1c4fecbd71 (diff)
merge revision(s) 055613fd868a8c94e43893f8c58a00cdd2a81f6d,127d7a35df10ee2bc99f44b888972b2c5361d84f,e2a9b87126d59e4766479a7aa12cf7a648f46506: [Backport #20447]
Fix pointer incompatiblity Since the subsecond part is discarded, WIDEVAL to VALUE conversion is needed. Some functions are not used when `THREAD_MODEL=none` `rb_thread_sched_destroy` is not used now at all
Diffstat (limited to 'thread_none.c')
-rw-r--r--thread_none.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_none.c b/thread_none.c
index 4d53d3bf4d..d3b533110e 100644
--- a/thread_none.c
+++ b/thread_none.c
@@ -46,10 +46,12 @@ rb_thread_sched_init(struct rb_thread_sched *sched, bool atfork)
{
}
+#if 0
static void
rb_thread_sched_destroy(struct rb_thread_sched *sched)
{
}
+#endif
// Do nothing for mutex guard
void