Commit bc185fd2 authored by Pavel Vainerman's avatar Pavel Vainerman

Добавил функцию setThreadPriority() для UniSetObject

parent 43263c9d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 1.4 Version: 1.4
Release: alt6 Release: alt7
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -210,9 +210,11 @@ rm -f %buildroot%_libdir/*.la ...@@ -210,9 +210,11 @@ rm -f %buildroot%_libdir/*.la
#%_pkgconfigdir/libUniSet*.pc #%_pkgconfigdir/libUniSet*.pc
%exclude %_pkgconfigdir/libUniSet.pc %exclude %_pkgconfigdir/libUniSet.pc
%changelog %changelog
* Wed Jul 25 2012 Pavel Vainerman <pv@altlinux.ru> 1.4-alt7
- (codegen): added support type 'long'
- add setThreadPriority(..) for UniSetObject
* Tue Jul 10 2012 Pavel Vaynerman <pv@server> 1.4-alt6 * Tue Jul 10 2012 Pavel Vaynerman <pv@server> 1.4-alt6
- (unetudp): fixed bug in the logic of switching channels - (unetudp): fixed bug in the logic of switching channels
......
...@@ -7,5 +7,5 @@ ulimit -Sc 10000000000 ...@@ -7,5 +7,5 @@ ulimit -Sc 10000000000
./uniset-start.sh -f ./uniset-smemory --smemory-id SharedMemory --pulsar-id DO_C --pulsar-iotype DO \ ./uniset-start.sh -f ./uniset-smemory --smemory-id SharedMemory --pulsar-id DO_C --pulsar-iotype DO \
--confile test.xml --datfile test.xml \ --confile test.xml --datfile test.xml \
--unideb-add-levels info,crit,warn,level9,system \ --unideb-add-levels info,crit,warn,level9,system \
--dlog-add-levels info,crit,warn --dlog-add-levels info,crit,warn \
--db-logging 1
\ No newline at end of file
...@@ -192,6 +192,8 @@ class UniSetObject: ...@@ -192,6 +192,8 @@ class UniSetObject:
UniSetTypes::VoidMessage msg; UniSetTypes::VoidMessage msg;
ObjectsManager* mymngr; ObjectsManager* mymngr;
void setThreadPriority( int p );
private: private:
friend class ObjectsManager; friend class ObjectsManager;
...@@ -247,5 +249,6 @@ class UniSetObject: ...@@ -247,5 +249,6 @@ class UniSetObject:
unsigned long stMaxQueueMessages; /*<! Максимальное число сообщений хранившихся в очереди */ unsigned long stMaxQueueMessages; /*<! Максимальное число сообщений хранившихся в очереди */
unsigned long stCountOfQueueFull; /*! количество переполнений очереди сообщений */ unsigned long stCountOfQueueFull; /*! количество переполнений очереди сообщений */
}; };
//---------------------------------------------------------------------------
#endif #endif
//---------------------------------------------------------------------------
\ No newline at end of file
...@@ -451,6 +451,12 @@ void UniSetObject::setPushMutexTimeout( unsigned long msec ) ...@@ -451,6 +451,12 @@ void UniSetObject::setPushMutexTimeout( unsigned long msec )
pushMutexTimeout = msec; pushMutexTimeout = msec;
} }
// ------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------
void UniSetObject::setThreadPriority( int p )
{
if( thr )
thr->setPriority(p);
}
// ------------------------------------------------------------------------------------------
void UniSetObject::push(const TransportMessage& tm) void UniSetObject::push(const TransportMessage& tm)
{ {
{ // lock { // lock
......
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