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
01b4d19c
Commit
01b4d19c
authored
Sep 14, 2009
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes (add uniset_spin_lock)
parent
b26d06b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
UniExchange.cc
extensions/UniNetwork/UniExchange.cc
+8
-4
UniExchange.h
extensions/UniNetwork/UniExchange.h
+1
-0
No files found.
extensions/UniNetwork/UniExchange.cc
View file @
01b4d19c
...
...
@@ -220,7 +220,7 @@ void UniExchange::NetNodeInfo::update( IOController_i::ShortMapSeq_var& map, SMI
smap
[
i
].
id
=
map
[
i
].
id
;
}
smap
[
i
].
val
=
map
[
i
].
value
;
smap
[
i
].
val
=
map
[
i
].
value
;
try
{
...
...
@@ -256,9 +256,12 @@ IOController_i::ShortMapSeq* UniExchange::getSensors()
for
(
SList
::
iterator
it
=
mymap
.
begin
();
it
!=
mymap
.
end
();
++
it
)
{
IOController_i
::
ShortMap
m
;
m
.
id
=
it
->
id
;
m
.
value
=
it
->
val
;
m
.
type
=
it
->
type
;
{
uniset_spin_lock
lock
(
it
->
val_lock
,
30
);
m
.
id
=
it
->
id
;
m
.
value
=
it
->
val
;
m
.
type
=
it
->
type
;
}
(
*
res
)[
i
++
]
=
m
;
}
...
...
@@ -271,6 +274,7 @@ void UniExchange::updateLocalData()
{
try
{
uniset_spin_lock
lock
(
it
->
val_lock
,
30
);
if
(
it
->
type
==
UniversalIO
::
DigitalInput
||
it
->
type
==
UniversalIO
::
DigitalOutput
)
{
...
...
extensions/UniNetwork/UniExchange.h
View file @
01b4d19c
...
...
@@ -56,6 +56,7 @@ class UniExchange:
long
val
;
long
id
;
UniversalIO
::
IOTypes
type
;
UniSetTypes
::
uniset_spin_mutex
val_lock
;
};
typedef
std
::
vector
<
SInfo
>
SList
;
...
...
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