Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
bc185fd2
Commit
bc185fd2
authored
Jul 25, 2012
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Добавил функцию setThreadPriority() для UniSetObject
parent
43263c9d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
libuniset.spec
conf/libuniset.spec
+5
-3
start_fg.sh
extensions/SharedMemory/start_fg.sh
+3
-2
UniSetObject.h
include/UniSetObject.h
+5
-1
UniSetObject.cc
src/ObjectRepository/UniSetObject.cc
+6
-0
No files found.
conf/libuniset.spec
View file @
bc185fd2
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 1.4
Release: alt
6
Release: alt
7
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
...
...
extensions/SharedMemory/start_fg.sh
View file @
bc185fd2
...
...
@@ -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
include/UniSetObject.h
View file @
bc185fd2
...
...
@@ -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
src/ObjectRepository/UniSetObject.cc
View file @
bc185fd2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment