diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-09-29 21:02:17 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-04 14:53:33 +0200 |
commit | da5cdcdeddf7bc21606b4cb64d8b1fc412146935 (patch) | |
tree | e887175264e671a241e735763100e40adaa15e7c /vcl/inc/osx | |
parent | 96e67461c8b451f3a313bcc973ac49c5e49537c0 (diff) |
Convert tick-based timer events to versioned ones
Instead of storing the system ticks in the timer event message
simply store a version.
Moves the version handling code into a VersionedEvent class,
inherited by WinSalTimer and AquaSalTimer.
Change-Id: I5add85031d36b3424a26a9ef798294cbfb00b2e4
Reviewed-on: https://gerrit.libreoffice.org/42959
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/osx')
-rw-r--r-- | vcl/inc/osx/saltimer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/inc/osx/saltimer.h b/vcl/inc/osx/saltimer.h index f70bd65491b8..65247b930cfa 100644 --- a/vcl/inc/osx/saltimer.h +++ b/vcl/inc/osx/saltimer.h @@ -41,10 +41,9 @@ public: ~ReleasePoolHolder() { [mpPool release]; } }; -class AquaSalTimer : public SalTimer +class AquaSalTimer final : public SalTimer, protected VersionedEvent { NSTimer *m_pRunningTimer; - sal_Int32 m_nTimerStartTicks; ///< system ticks at timer start % SAL_MAX_INT32 void queueDispatchTimerEvent( bool bAtStart ); void callTimerCallback(); |