Commit 7cbd85f4 authored by Pavel Vainerman's avatar Pavel Vainerman

Синхронизировал исправления с 1.x/master

parent 1e7c5b2d
......@@ -13,7 +13,7 @@
Name: libuniset2
Version: 2.0
Release: alt31
Release: alt32
Summary: UniSet - library for building distributed industrial control systems
......@@ -445,6 +445,10 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# ..
%changelog
* Wed May 13 2015 Pavel Vainerman <pv@altlinux.ru> 2.0-alt32
- sync from 1.x/master: ModbusMaster: fixed bug: unstable timeout...( thank`s ilyap@etersoft.ru)
- make style
* Mon May 11 2015 Pavel Vainerman <pv@altlinux.ru> 2.0-alt31
- Calibrations: fixed bug
- LogSession: fixed bug
......
......@@ -149,11 +149,13 @@ void MBTCPMaster::poll_thread()
ptTimeout.reset();
}
// ждём начала работы..(см. MBExchange::activateObject)
while( !checkProcActive() )
{
uniset_mutex_lock l(mutex_start, 3000);
UniSetTypes::uniset_rwmutex_rlock l(mutex_start);
}
// работаем
while( checkProcActive() )
{
try
......
......@@ -330,6 +330,13 @@ void MBTCPMultiMaster::poll_thread()
ptTimeout.reset();
}
// ждём начала работы..(см. MBExchange::activateObject)
while( !checkProcActive() )
{
UniSetTypes::uniset_rwmutex_rlock l(mutex_start);
}
// работаем..
while( checkProcActive() )
{
try
......
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