MCPcopy Create free account
hub / github.com/pybind/pybind11 / inc_ref

Method inc_ref

include/pybind11/gil.h:105–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 gil_scoped_acquire &operator=(const gil_scoped_acquire &) = delete;
104
105 void inc_ref() { ++tstate->gilstate_counter; }
106
107 PYBIND11_NOINLINE void dec_ref() {
108 --tstate->gilstate_counter;

Callers 15

MySingletonClass · 0.80
castMethod · 0.80
castMethod · 0.80
castFunction · 0.80
dispatcherMethod · 0.80
add_objectFunction · 0.80
keep_alive_implFunction · 0.80
arrayMethod · 0.80
castMethod · 0.80
castMethod · 0.80
initMethod · 0.80
pytypes.hFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected