Commit 89902876 authored by Pavel Vainerman's avatar Pavel Vainerman

fixed bug: http://bugs.etersoft.ru/show_bug.cgi?id=5230

(smemory segfault!)
parent 86b7fd9a
...@@ -280,6 +280,7 @@ class IONotifyController: ...@@ -280,6 +280,7 @@ class IONotifyController:
void onChangeUndefined( DependsList::iterator it, bool undefined ); void onChangeUndefined( DependsList::iterator it, bool undefined );
UniSetTypes::uniset_mutex sig_mutex;
ChangeSignal changeSignal; ChangeSignal changeSignal;
private: private:
......
...@@ -494,6 +494,7 @@ void IONotifyController::localSaveState( IOController::DIOStateList::iterator& i ...@@ -494,6 +494,7 @@ void IONotifyController::localSaveState( IOController::DIOStateList::iterator& i
try try
{ {
uniset_mutex_lock l(sig_mutex,500);
changeSignal.emit(&sm); changeSignal.emit(&sm);
} }
catch(...){} catch(...){}
...@@ -557,6 +558,7 @@ void IONotifyController::localSaveValue( IOController::AIOStateList::iterator& l ...@@ -557,6 +558,7 @@ void IONotifyController::localSaveValue( IOController::AIOStateList::iterator& l
try try
{ {
uniset_mutex_lock l(sig_mutex,500);
changeSignal.emit(&sm); changeSignal.emit(&sm);
} }
catch(...){} catch(...){}
...@@ -1201,6 +1203,7 @@ void IONotifyController::localSetState( IOController::DIOStateList::iterator& it ...@@ -1201,6 +1203,7 @@ void IONotifyController::localSetState( IOController::DIOStateList::iterator& it
try try
{ {
uniset_mutex_lock l(sig_mutex,500);
changeSignal.emit(&sm); changeSignal.emit(&sm);
} }
catch(...){} catch(...){}
...@@ -1257,6 +1260,7 @@ void IONotifyController::localSetValue( IOController::AIOStateList::iterator& li ...@@ -1257,6 +1260,7 @@ void IONotifyController::localSetValue( IOController::AIOStateList::iterator& li
try try
{ {
uniset_mutex_lock l(sig_mutex,500);
changeSignal.emit(&sm); changeSignal.emit(&sm);
} }
catch(...){} catch(...){}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment