aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 05:14:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-21 05:14:47 +0000
commit1ea49760417b17e62a90cce3d736f777cbfd52b7 (patch)
tree24ebdc99ceddd7afb789e39ac025ee42c53ff6fe /thread_win32.c
parente8bd56f5c34689d1211552863359a219ba2fce7e (diff)
downloadruby-1ea49760417b17e62a90cce3d736f777cbfd52b7.tar.gz
* thread_pthread.c (native_set_thread_name): New function to
set thread name visible with ps command on GNU/Linux. Ex. ps -o %c -L * thread.c (thread_start_func_2): Call native_set_thread_name at beginning. (rb_thread_inspect_msg): Extract from rb_thread_inspect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index a0b26e3d4a..c4ea6c8efd 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -794,4 +794,9 @@ rb_nativethread_self(void)
return GetCurrentThread();
}
+static void
+native_set_thread_name(rb_thread_t *th)
+{
+}
+
#endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */