Commit 00c44642 authored by Pavel Vainerman's avatar Pavel Vainerman

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

parent 0b54220b
......@@ -3,7 +3,7 @@
Name: libuniset
Version: 1.4
Release: alt6
Release: alt7
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
......@@ -210,9 +210,11 @@ rm -f %buildroot%_libdir/*.la
#%_pkgconfigdir/libUniSet*.pc
%exclude %_pkgconfigdir/libUniSet.pc
%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
- (unetudp): fixed bug in the logic of switching channels
......
......@@ -7,5 +7,5 @@ ulimit -Sc 10000000000
./uniset-start.sh -f ./uniset-smemory --smemory-id SharedMemory --pulsar-id DO_C --pulsar-iotype DO \
--confile test.xml --datfile test.xml \
--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:
UniSetTypes::VoidMessage msg;
ObjectsManager* mymngr;
void setThreadPriority( int p );
private:
friend class ObjectsManager;
......@@ -247,5 +249,6 @@ class UniSetObject:
unsigned long stMaxQueueMessages; /*<! Максимальное число сообщений хранившихся в очереди */
unsigned long stCountOfQueueFull; /*! количество переполнений очереди сообщений */
};
//---------------------------------------------------------------------------
#endif
//---------------------------------------------------------------------------
\ No newline at end of file
......@@ -451,6 +451,12 @@ void UniSetObject::setPushMutexTimeout( unsigned long msec )
pushMutexTimeout = msec;
}
// ------------------------------------------------------------------------------------------
void UniSetObject::setThreadPriority( int p )
{
if( thr )
thr->setPriority(p);
}
// ------------------------------------------------------------------------------------------
void UniSetObject::push(const TransportMessage& tm)
{
{ // 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