summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 8d078e7443..f61db9e931 100644
--- a/thread.c
+++ b/thread.c
@@ -2833,7 +2833,11 @@ rb_thread_inspect(VALUE thread)
rb_gc_force_recycle(loc);
}
}
- rb_str_catf(str, ", @status=%s>", status);
+ rb_str_catf(str, ", @status=%s", status);
+ if (th->locking_mutex != Qfalse) {
+ rb_str_catf(str, ", @wait_for=%"PRIsVALUE, rb_inspect(th->locking_mutex));
+ }
+ rb_str_catf(str, ">");
OBJ_INFECT(str, thread);
return str;