]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/ActivePyModules.cc: use wrappers for acquiring/releasing GIL 38685/head
authorKefu Chai <kchai@redhat.com>
Thu, 24 Dec 2020 07:27:41 +0000 (15:27 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 31 Jan 2021 09:17:04 +0000 (17:17 +0800)
commit9c652fb305a3e3d1b4a752bac9bd8a85d15c7de9
tree4f4f8d96e3189a274268c68804ee678c3adf42d0
parent79b91ea62d64b7c3ff486e266aafdd3a75c2b9fc
mgr/ActivePyModules.cc: use wrappers for acquiring/releasing GIL

this change is a follow-up of
0601b31a53a455f0b67c981460d198cb3a97f3de, for couple reasons

- document the guideline for locking when working with python GIL
- add primitives to extract the patterns for acquiring/releasing
  GIL. so they can be reused.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/ActivePyModules.cc
src/mgr/ActivePyModules.h
src/mgr/ClusterState.h