summaryrefslogtreecommitdiff
path: root/trace_point.rb
diff options
context:
space:
mode:
-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