Method: Babeltrace2::BTInterrupter#initialize
- Defined in:
- lib/babeltrace2/graph/interrupter.rb
#initialize(handle = nil, retain: true, auto_release: true) ⇒ BTInterrupter
Returns a new instance of BTInterrupter.
31 32 33 34 35 36 37 38 39 |
# File 'lib/babeltrace2/graph/interrupter.rb', line 31 def initialize(handle = nil, retain: true, auto_release: true) if handle super(handle, retain: retain, auto_release: auto_release) else handle = Babeltrace2.bt_interrupter_create() raise Babeltrace2.process_error if handle.null? super(handle) end end |