aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2020-10-21 16:03:46 +0000
committerIngo Klöcker <[email protected]>2020-10-23 11:50:16 +0000
commit74c8131d809be49d64f482961fee1e6e0dbe4f4f (patch)
tree01712167167e7bf0995d5440e893cdd3cc83344d /lang/cpp/src/context.h
parentAdd Assuan transaction that forwards status lines to another object (diff)
downloadgpgme-74c8131d809be49d64f482961fee1e6e0dbe4f4f.tar.gz
gpgme-74c8131d809be49d64f482961fee1e6e0dbe4f4f.zip
cpp: Add support for gpgme_cancel
* lang/cpp/src/context.cpp, lang/cpp/context.h (Context::cancelPendingOperationImmediately): New. * NEWS: Mention added API -- This allows immediate canceling of running operations, e.g. when a thread with a long running operation (like SCD DEVINFO --watch) is going to be terminated (on application shutdown). GnuPG-bug-id: 5066
Diffstat (limited to 'lang/cpp/src/context.h')
-rw-r--r--lang/cpp/src/context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h
index 9cd35a5c..4021aa97 100644
--- a/lang/cpp/src/context.h
+++ b/lang/cpp/src/context.h
@@ -484,6 +484,7 @@ public:
GpgME::Error wait();
GpgME::Error lastError() const;
GpgME::Error cancelPendingOperation();
+ GpgME::Error cancelPendingOperationImmediately();
class Private;
const Private *impl() const