aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2022-06-15 14:37:41 +0200
committerJean Boussier <jean.boussier@gmail.com>2022-06-17 09:08:26 +0200
commitb6c1e1158d71b533b255ae7a2731598455918071 (patch)
tree9b3fdf4eb4a54e56d77ec7732ff079bdd9f896bc /thread_win32.c
parent20d4168250fb1f534cf2db7c44998b25252a70f8 (diff)
downloadruby-b6c1e1158d71b533b255ae7a2731598455918071.tar.gz
GVL Instrumentation API: add STARTED and EXITED events
[Feature #18339] After experimenting with the initial version of the API I figured there is a need for an exit event to cleanup instrumentation data. e.g. if you record data in a {thread_id -> data} table, you need to free associated data when a thread goes away.
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index 4fe3bde709..8cae77558e 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -135,6 +135,8 @@ thread_sched_to_waiting(struct rb_thread_sched *sched)
ReleaseMutex(sched->lock);
}
+#define thread_sched_to_dead thread_sched_to_waiting
+
static void
thread_sched_yield(struct rb_thread_sched *sched, rb_thread_t *th)
{