diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2016-07-20 10:54:30 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-12-05 08:17:46 -0500 |
commit | 4ffee8f4532cc561cd0c717b4bd6e52a99f5c43d (patch) | |
tree | b81098e0b953f32810ba5ae1b842be26ead96d9e /sc | |
parent | 4d6750e789c4dd6d75398021b9f804dcd5aab78f (diff) |
tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more
Timers and Idles.
Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c
(cherry picked from commit 9e51007039770370182839846676b205f5c34c57)
(cherry picked from commit a090e1e17962c5ca95f66c9d18fca6ac5dd4bca0)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/chartlis.hxx | 3 | ||||
-rw-r--r-- | sc/source/core/tool/chartlis.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/conflictsdlg.cxx | 1 |
6 files changed, 18 insertions, 5 deletions
diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index 6b982c316fc1..5037236ffece 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -149,6 +149,9 @@ private: ScChartListenerCollection& operator=( const ScChartListenerCollection& ) = delete; +protected: + void Init(); + public: ScChartListenerCollection( ScDocument* pDoc ); ScChartListenerCollection( const ScChartListenerCollection& ); diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx index b23aa4b914ba..9684d798ecc3 100644 --- a/sc/source/core/tool/chartlis.cxx +++ b/sc/source/core/tool/chartlis.cxx @@ -402,21 +402,26 @@ ScChartHiddenRangeListener::~ScChartHiddenRangeListener() // empty d'tor } +void ScChartListenerCollection::Init() +{ + aIdle.SetIdleHdl( LINK( this, ScChartListenerCollection, TimerHdl ) ); + aIdle.SetPriority( SchedulerPriority::REPAINT ); + aIdle.SetDebugName( "sc::ScChartListenerCollection aIdle" ); +} + ScChartListenerCollection::ScChartListenerCollection( ScDocument* pDocP ) : meModifiedDuringUpdate( SC_CLCUPDATE_NONE ), - aIdle( "sc ScChartListenerCollection" ), pDoc( pDocP ) { - aIdle.SetIdleHdl( LINK( this, ScChartListenerCollection, TimerHdl ) ); + Init(); } ScChartListenerCollection::ScChartListenerCollection( const ScChartListenerCollection& rColl ) : meModifiedDuringUpdate( SC_CLCUPDATE_NONE ), - aIdle( "sc ScChartListenerCollection" ), pDoc( rColl.pDoc ) { - aIdle.SetIdleHdl( LINK( this, ScChartListenerCollection, TimerHdl ) ); + Init(); } ScChartListenerCollection::~ScChartListenerCollection() @@ -591,7 +596,6 @@ void ScChartListenerCollection::FreeUno( const uno::Reference< chart::XChartData void ScChartListenerCollection::StartTimer() { - aIdle.SetPriority( SchedulerPriority::REPAINT ); aIdle.Start(); } diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 444fd7e1aa74..9bcfab79c8af 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -180,8 +180,11 @@ ScModule::ScModule( SfxObjectFactory* pFact ) : aSpellIdle.SetPriority(SchedulerPriority::LOWER); aSpellIdle.SetIdleHdl( LINK( this, ScModule, SpellTimerHdl ) ); + aSpellIdle.SetDebugName( "sc::ScModule aSpellIdle" ); + aIdleTimer.SetTimeout(SC_IDLE_MIN); aIdleTimer.SetTimeoutHdl( LINK( this, ScModule, IdleHandler ) ); + aIdleTimer.SetDebugName( "sc::ScModule aIdleTimer" ); aIdleTimer.Start(); pMessagePool = new ScMessagePool; diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index a897d263ae14..2801a8504460 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -1683,6 +1683,7 @@ ScExternalRefManager::ScExternalRefManager(ScDocument* pDoc) : { maSrcDocTimer.SetTimeoutHdl( LINK(this, ScExternalRefManager, TimeOutHdl) ); maSrcDocTimer.SetTimeout(SRCDOC_SCAN_INTERVAL); + maSrcDocTimer.SetDebugName( "sc::ScExternalRefManager maSrcDocTimer" ); } ScExternalRefManager::~ScExternalRefManager() diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 4aa805c34d3f..e92e3ee9dc74 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -116,6 +116,7 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, vcl::Window pTheView=pTPView->GetTableControl(); aSelectionIdle.SetPriority(SchedulerPriority::LOW); aSelectionIdle.SetIdleHdl(LINK( this, ScAcceptChgDlg, UpdateSelectionHdl )); + aSelectionIdle.SetDebugName( "ScAcceptChgDlg aSelectionIdle" ); pTPFilter->SetReadyHdl(LINK( this, ScAcceptChgDlg, FilterHandle )); pTPFilter->SetRefHdl(LINK( this, ScAcceptChgDlg, RefHandle )); diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx index 82172383c262..578efed90481 100644 --- a/sc/source/ui/miscdlgs/conflictsdlg.cxx +++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx @@ -423,6 +423,7 @@ ScConflictsDlg::ScConflictsDlg( vcl::Window* pParent, ScViewData* pViewData, ScD maSelectionIdle.SetPriority( SchedulerPriority::LOW ); maSelectionIdle.SetIdleHdl( LINK( this, ScConflictsDlg, UpdateSelectionHdl ) ); + maSelectionIdle.SetDebugName( "ScConflictsDlg maSelectionIdle" ); m_pLbConflicts->SetSelectHdl( LINK( this, ScConflictsDlg, SelectHandle ) ); m_pLbConflicts->SetDeselectHdl( LINK( this, ScConflictsDlg, DeselectHandle ) ); |