MCPcopy Create free account
hub / github.com/RustPython/RustPython / _incref

Method _incref

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

Source from the content-addressed store, hash-verified

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