aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GpgKey.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model/GpgKey.h')
-rw-r--r--src/core/model/GpgKey.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/model/GpgKey.h b/src/core/model/GpgKey.h
index 4761f8a5..8c24ca5d 100644
--- a/src/core/model/GpgKey.h
+++ b/src/core/model/GpgKey.h
@@ -29,6 +29,8 @@
#ifndef GPGFRONTEND_GPGKEY_H
#define GPGFRONTEND_GPGKEY_H
+#include <mutex>
+
#include "GpgSubKey.h"
#include "GpgUID.h"
@@ -353,6 +355,8 @@ class GPGFRONTEND_CORE_EXPORT GpgKey {
std::unique_ptr<struct _gpgme_key, _key_ref_deleter>; ///<
KeyRefHandler key_ref_ = nullptr; ///<
+
+ mutable std::mutex gpgme_key_opera_mutex; // mutex for gpgme key operations
};
} // namespace GpgFrontend