diff Implab/Components/RunnableComponent.cs @ 202:2651cb9a4250 v2

Implemented PollingRunnableComponent
author cin
date Tue, 18 Oct 2016 01:03:49 +0300
parents 40d7fed4a09e
children 4d9830a9bbb8
line wrap: on
line diff
--- a/Implab/Components/RunnableComponent.cs	Mon Oct 17 00:36:36 2016 +0300
+++ b/Implab/Components/RunnableComponent.cs	Tue Oct 18 01:03:49 2016 +0300
@@ -210,7 +210,8 @@
 
         public ExecutionState State {
             get {
-                return m_stateMachine.State;
+                lock (m_stateMachine)
+                    return m_stateMachine.State;
             }
         }