Home GnuPG
Diffusion GPGME 0378250846b7

core: Make the refactored global wait work.
0378250846b7Unpublished

Unpublished Commit · Learn More

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

Description

core: Make the refactored global wait work.

* src/fdtable.h (FDTABLE_FLAG_NOT_DONE): New flag.
* src/fdtable.c (_gpgme_fdtable_io_cb_count): Rename to ...
(_gpgme_fdtable_get_count): this and add arg 'flags'.
(_gpgme_fdtable_run_io_cbs): Add return arg 'r_owner'.
* src/wait.c (gpgme_wait_ext): Improve tracing.  Act upon error codes
from running the callbacks.
* tests/gpg/t-wait.c (main): Remove the sleep.

Now t-wait works again. There are still problems with the user
defined events but it is another step in our refactoring work.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 14 2019, 11:10 AM
Parents
rM153f1128f81a: core: Use a better name for the internal synchronous wait.
Branches
Unknown
Tags
Unknown