diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-23 07:52:46 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-23 07:52:46 +0000 |
commit | a153ce31a13e090b780e8d95e52f3ddae3a412de (patch) | |
tree | df8c5d1bded6469daa2cf0bf6ae5be31807cefa4 /thread.c | |
parent | a14f02f0e08c2bced7ae5a1f77aab3bac4969661 (diff) | |
download | ruby-a153ce31a13e090b780e8d95e52f3ddae3a412de.tar.gz |
* thread.c: Documentation for Thread#backtrace_locations
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -4833,9 +4833,10 @@ rb_exec_recursive_outer(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE arg) /* * call-seq: - * thr.backtrace -> array + * thread.backtrace -> array + * + * Returns the current backtrace of the target thread. * - * Returns the current back trace of the _thr_. */ static VALUE @@ -4844,6 +4845,17 @@ rb_thread_backtrace_m(int argc, VALUE *argv, VALUE thval) return vm_thread_backtrace(argc, argv, thval); } +/* call-seq: + * thread.backtrace_locations(*args) -> array or nil + * + * Returns the execution stack for the target thread---an array containing + * backtrace location objects. + * + * See Thread::Backtrace::Location for more information. + * + * This method behaves similarly to Kernel#caller_locations except for a + * specific thread. + */ static VALUE rb_thread_backtrace_locations_m(int argc, VALUE *argv, VALUE thval) { |