2008-06-27 Marcus Brinkmann <marcus@g10code.de>
[gpgme.git] / gpgme / ChangeLog
index cdda77c..198f5f7 100644 (file)
@@ -1,3 +1,16 @@
+2008-06-27  Marcus Brinkmann  <marcus@g10code.de>
+
+       * context.h: Include "sema.h".
+       (struct gpgme_context): New members lock and canceled.
+       * gpgme.c (gpgme_new): Initialize lock.
+       (gpgme_release): Destroy lock.
+       (gpgme_cancel_async): New function.
+       * op-support.c (_gpgme_op_reset): Reset the canceled flag.
+       * wait-global.c (gpgme_wait): Check cancel flag before processing
+       any I/O callbacks.
+       * wait-private.c (_gpgme_wait_on_condition): Likewise.
+       * wait-user.c (_gpgme_user_io_cb_handler): Likewise.
+
 2008-06-26  Werner Koch  <wk@g10code.com>
 
        * w32-util.c (_gpgme_mkstemp): Replace sprint by stpcpy.