summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-07-30 14:22:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-30 17:53:23 +0200
commit9edb0f8641b5c01fff57cb5b5c492f3f525d49c8 (patch)
treedd03846db731dd3e9cce4db285db3da1ce1c5d07 /include/svx
parent1119f5fb482c82124f99bbeffe6b507a377247de (diff)
osl::Mutex->std::atomic in FmSearchEngine
Change-Id: Ie056215227ce19efcb28518f6a510bed5b15b93d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119705 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/fmsrcimp.hxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/svx/fmsrcimp.hxx b/include/svx/fmsrcimp.hxx
index 68cd77b17fe2..1c9d55829e69 100644
--- a/include/svx/fmsrcimp.hxx
+++ b/include/svx/fmsrcimp.hxx
@@ -26,11 +26,11 @@
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
#include <cppuhelper/implbase.hxx>
-#include <osl/mutex.hxx>
#include <unotools/charclass.hxx>
#include <unotools/collatorwrapper.hxx>
#include <tools/link.hxx>
+#include <atomic>
#include <deque>
#include <memory>
#include <string_view>
@@ -193,12 +193,10 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine final
// The link we broadcast the progress and the result to
Link<const FmSearchProgress*,void> m_aProgressHandler;
- bool m_bSearchingCurrently : 1; // is an (asynchronous) search running?
- bool m_bCancelAsynchRequest : 1; // should be cancelled?
- ::osl::Mutex m_aCancelAsynchAccess; // access to_bCancelAsynchRequest (technically only
- // relevant for m_eMode == SM_USETHREAD)
+ std::atomic<bool> m_bCancelAsynchRequest; // should be cancelled?
// parameters for the search
+ bool m_bSearchingCurrently : 1; // is an (asynchronous) search running?
bool m_bFormatter : 1; // use field formatting
bool m_bForward : 1; // direction
bool m_bWildcard : 1; // wildcard search