diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-02 14:03:43 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-09-02 14:03:43 +0300 |
| commit | 2691cdb1dd27d3125c8f5bbd15c3e8fe1f4486dd (patch) | |
| tree | 42c2432b3c4ad127d94e16052b2cd0307881a290 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging | |
| parent | a4a0d4973c8eff2bbfe2c8e753f30626c9e9076d (diff) | |
| download | Tango-2691cdb1dd27d3125c8f5bbd15c3e8fe1f4486dd.tar.gz Tango-2691cdb1dd27d3125c8f5bbd15c3e8fe1f4486dd.zip | |
Added new ports list to DB.
Modified diagnostics to use DigitalInterfaceIOs.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs index 3663eb093..e634de824 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/EventLogging/DefaultEventLogger.cs @@ -208,14 +208,17 @@ namespace Tango.MachineStudio.Common.EventLogging } else { - if (_pendingEvents.Count > 0) + lock (_pendingEvents) { - var pending = _pendingEvents.ToList(); - _pendingEvents.Clear(); - - foreach (var ev in pending) + if (_pendingEvents.Count > 0) { - Log(ev); + var pending = _pendingEvents.ToList(); + _pendingEvents.Clear(); + + foreach (var ev in pending) + { + Log(ev); + } } } |
