summaryrefslogtreecommitdiff
path: root/trace_point.rb
diff options
context:
space:
mode:
authorzverok <[email protected]>2021-12-30 20:52:42 +0200
committerKoichi Sasada <[email protected]>2022-12-22 13:37:58 +0900
commitae455a129e97709d7fd8b11c1e5c3245f4738528 ()
treeef2d98e4fd9888bca2b4f5bcdd492644f00a4034 /trace_point.rb
parentb7bb14b96e7e1923d91787fa5a9ca2e4053431b1 (diff)
[DOC] Update TracePoint.allow_reentry docs
Adjust call-seq to mention block, and add examples and explanations.
Notes: Merged: https://.com/ruby/ruby/pull/5380
-rw-r--r--trace_point.rb51
1 files changed, 50 insertions, 1 deletions
@@ -136,7 +136,7 @@ class TracePoint
end
# call-seq:
- # TracePoint.allow_reentry
#
# In general, while a TracePoint callback is running,
# other registered callbacks are not called to avoid
@@ -147,6 +147,55 @@ class TracePoint
#
# If this method is called when the reentrance is already allowed,
# it raises a RuntimeError.
def self.allow_reentry
Primitive.tracepoint_allow_reentry
end