diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-17 19:20:29 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-10-17 19:21:54 +0200 | 
| commit | 8e4be3612d15be86ede413ddcbf040f5ac065c95 (patch) | |
| tree | d4e80789471da45b851eb4dceec168b08dfe442a /options | |
| parent | 63a43fb7903b26f3d8bde5e32b38af9621994ff9 (diff) | |
options: use QRecursiveMutex explicitly
Diffstat (limited to 'options')
| -rw-r--r-- | options/bundle.hpp | 4 | ||||
| -rw-r--r-- | options/connector.hpp | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/options/bundle.hpp b/options/bundle.hpp index 158fcef9..15965bc9 100644 --- a/options/bundle.hpp +++ b/options/bundle.hpp @@ -46,7 +46,7 @@ class OTR_OPTIONS_EXPORT bundle final : public QObject, public connector      friend struct bundler; -    mutable QMutex mtx { QMutex::Recursive }; +    mutable QRecursiveMutex mtx;      const QString group_name;      group saved;      group transient; @@ -62,7 +62,7 @@ public:      bundle(const bundle&) = delete;      bundle& operator=(const bundle&) = delete; -    QMutex* get_mtx() const override { return &mtx; } +    QRecursiveMutex* get_mtx() const override { return &mtx; }      QString name() const { return group_name; }      explicit bundle(const QString& group_name); diff --git a/options/connector.hpp b/options/connector.hpp index 025efda2..01d1d1db 100644 --- a/options/connector.hpp +++ b/options/connector.hpp @@ -38,7 +38,7 @@ class OTR_OPTIONS_EXPORT connector  protected:      void notify_values(const QString& name) const;      void notify_all_values() const; -    virtual QMutex* get_mtx() const = 0; +    virtual QRecursiveMutex* get_mtx() const = 0;      void set_all_to_default_();  public: | 
