MCPcopy Index your code
hub / github.com/python/cpython / _incref

Method _incref

Lib/multiprocessing/managers.py:858–876  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

856 return self._callmethod('#GETVALUE')
857
858 def _incref(self):
859 if self._owned_by_manager:
860 util.debug('owned_by_manager skipped INCREF of %r', self._token.id)
861 return
862
863 conn = self._Client(self._token.address, authkey=self._authkey)
864 dispatch(conn, None, 'incref', (self._id,))
865 util.debug('INCREF %r', self._token.id)
866
867 self._all_serials.add(self._serial)
868
869 state = self._manager and self._manager._state
870
871 self._close = util.Finalize(
872 self, BaseProxy._decref,
873 args=(self._token, self._serial, self._authkey, state,
874 self._tls, self._all_serials, self._Client),
875 exitpriority=10
876 )
877
878 @staticmethod
879 def _decref(token, serial, authkey, state, tls, idset, _Client):

Callers 2

__init__Method · 0.95
_after_forkMethod · 0.95

Calls 3

dispatchFunction · 0.70
debugMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected