diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-02-16 13:05:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-02-17 08:59:01 +0100 |
commit | 6be9ae8aa1d3b164f3953dbc1cb7f0f1c1976d9b (patch) | |
tree | 244d93b2f30894d9367aae54d76b962e53a165f2 /include/sfx2 | |
parent | ea0701aab307a549cf6cad1d309cab1bf11ef436 (diff) |
inline some acquire/release calls
because these are all on the hot path, and in the best case, with
enough inlining, the compiler can skip the call altogether and just
do a locked CMPXHG instruction
Change-Id: I099d6385f602e40e1767f9f1002b7514ecf436e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88775
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/sfxbasemodel.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sfx2/sfxbasemodel.hxx b/include/sfx2/sfxbasemodel.hxx index 3dbdb80c3aff..5ee900b8d852 100644 --- a/include/sfx2/sfxbasemodel.hxx +++ b/include/sfx2/sfxbasemodel.hxx @@ -191,7 +191,8 @@ public: @onerror A RuntimeException is thrown. */ - virtual void SAL_CALL acquire() throw() override ; + virtual void SAL_CALL acquire() throw() override + { OWeakObject::acquire(); } /**___________________________________________________________________________________________________ @short decrement refcount @@ -200,7 +201,8 @@ public: @onerror A RuntimeException is thrown. */ - virtual void SAL_CALL release() throw() override ; + virtual void SAL_CALL release() throw() override + { OWeakObject::release(); } // XTypeProvider |