Home GnuPG
Diffusion GPGME 6af7bee076ba

python: Release the GIL during calls into GPGME.
6af7bee076baUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

python: Release the GIL during calls into GPGME.

* lang/python/helpers.c (pyme_raise_callback_exception): Re-acquire
the Global Interpreter Lock.
(pyPassphraseCb, pyme_set_passphrase_cb, pyProgressCb,
pyme_set_progress_cb, pyStatusCb, pyme_set_status_cb,
_pyme_interact_cb, pyDataReadCb, pyDataWriteCb, pyDataSeekCb,
pyDataReleaseCb, pyme_data_new_from_cbs, _pyme_assuan_data_cb,
_pyme_assuan_inquire_cb, _pyme_assuan_status_cb): Likewise.
* lang/python/setup.py.in: Make 'gpgme-config' emit the correct
cflags, and SWIG generate code to release the GIL before calling us.
  • Co-authored-by: Kai Michaelis <kai@gnupg.org>
  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Sep 16 2016, 12:32 PM
Parents
rMa458e7fe2006: python: Adapt to 'gpgme_op_interact'.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rM6af7bee076ba: python: Release the GIL during calls into GPGME. (authored by Justus Winter <justus@g10code.com>).Sep 16 2016, 3:56 PM