MCPcopy Index your code
hub / github.com/RustPython/RustPython / incref

Method incref

Lib/multiprocessing/managers.py:426–441  ·  view source on GitHub ↗
(self, c, ident)

Source from the content-addressed store, hash-verified

424 self.serve_client(c)
425
426 def incref(self, c, ident):
427 with self.mutex:
428 try:
429 self.id_to_refcount[ident] += 1
430 except KeyError as ke:
431 # If no external references exist but an internal (to the
432 # manager) still does and a new external reference is created
433 # from it, restore the manager's tracking of it from the
434 # previously stashed internal ref.
435 if ident in self.id_to_local_proxy_obj:
436 self.id_to_refcount[ident] = 1
437 self.id_to_obj[ident] = \
438 self.id_to_local_proxy_obj[ident]
439 util.debug('Server re-enabled tracking & INCREF %r', ident)
440 else:
441 raise ke
442
443 def decref(self, c, ident):
444 if ident not in self.id_to_refcount and \

Callers 1

createMethod · 0.95

Calls 1

debugMethod · 0.45

Tested by

no test coverage detected