diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-21 09:45:46 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-21 09:45:46 +0100 |
| commit | 62a425a9b16a44ff627501cad0a49704729eed7f (patch) | |
| tree | d415f459ad00f6a21cdca1e343d40948556be33d /CrowIDE/src/DesignInterface.cs | |
| parent | 57010b29ccf36f59c9471f030f9d3572b264385e (diff) | |
DbgEvents baseMeasureWhenDiscarded
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
| -rw-r--r-- | CrowIDE/src/DesignInterface.cs | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs index 9ac9e9a5..532d7f3d 100644 --- a/CrowIDE/src/DesignInterface.cs +++ b/CrowIDE/src/DesignInterface.cs @@ -158,13 +158,16 @@ namespace Crow.Coding protected override void processLayouting () { - #if DBG_EVENTS - DbgStartSubEvt(DbgEvtType.IFaceLayouting); - #endif - if (Monitor.TryEnter (LayoutMutex)) { DiscardQueue = new Queue<LayoutingQueueItem> (); LayoutingQueueItem lqi; + #if DBG_EVENTS + bool logLayouting = false; + if (LayoutingQueue.Count > 0){ + DbgStartSubEvt(DbgEvtType.IFaceLayouting); + logLayouting = true; + } + #endif while (LayoutingQueue.Count > 0) { lqi = LayoutingQueue.Dequeue (); #if DBG_EVENTS @@ -175,14 +178,18 @@ namespace Crow.Coding DbgEndSubEvt(); #endif } + #if DBG_EVENTS + if (logLayouting) + DbgEndSubEvt(); + #endif LayoutingQueue = DiscardQueue; Monitor.Exit (LayoutMutex); DiscardQueue = null; } - - #if DBG_EVENTS - DbgEndSubEvt(); - #endif + } + public override string ToString () + { + return string.Format ("DI"); } } } |