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
2d3fd0c1
Commit
2d3fd0c1
authored
Jan 12, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SharedMemory): переделал signal_history на более безопасное использование
и не менее эффективное "const HistoryInfo&" вместо указателя..
parent
1d7b633a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
SharedMemory.cc
extensions/SharedMemory/SharedMemory.cc
+3
-3
SharedMemory.h
extensions/SharedMemory/SharedMemory.h
+2
-2
No files found.
extensions/SharedMemory/SharedMemory.cc
View file @
2d3fd0c1
...
...
@@ -691,7 +691,7 @@ void SharedMemory::updateHistory( IOStateList::iterator& s_it, IOController* )
it
->
fuse_sec
=
sm_tv_sec
;
it
->
fuse_usec
=
sm_tv_usec
;
m_historySignal
.
emit
(
&
(
*
it
)
);
m_historySignal
.
emit
(
(
*
it
)
);
}
}
else
if
(
s_it
->
second
.
type
==
UniversalIO
::
AI
||
...
...
@@ -710,7 +710,7 @@ void SharedMemory::updateHistory( IOStateList::iterator& s_it, IOController* )
it
->
fuse_sec
=
sm_tv_sec
;
it
->
fuse_usec
=
sm_tv_usec
;
m_historySignal
.
emit
(
&
(
*
it
)
);
m_historySignal
.
emit
(
(
*
it
)
);
}
}
else
...
...
@@ -721,7 +721,7 @@ void SharedMemory::updateHistory( IOStateList::iterator& s_it, IOController* )
it
->
fuse_sec
=
sm_tv_sec
;
it
->
fuse_usec
=
sm_tv_usec
;
m_historySignal
.
emit
(
&
(
*
it
)
);
m_historySignal
.
emit
(
(
*
it
)
);
}
}
}
...
...
extensions/SharedMemory/SharedMemory.h
View file @
2d3fd0c1
...
...
@@ -343,8 +343,8 @@ class SharedMemory:
typedef
std
::
list
<
History
::
iterator
>
HistoryItList
;
typedef
std
::
map
<
UniSetTypes
::
ObjectId
,
HistoryItList
>
HistoryFuseMap
;
typedef
sigc
::
signal
<
void
,
HistoryInfo
*
>
HistorySlot
;
HistorySlot
signal_history
();
/*!< сигнал о срабатывании условий "сб
ор
са" дампа истории */
typedef
sigc
::
signal
<
void
,
const
HistoryInfo
&
>
HistorySlot
;
HistorySlot
signal_history
();
/*!< сигнал о срабатывании условий "сб
ро
са" дампа истории */
inline
int
getHistoryStep
(){
return
histSaveTime
;
}
/*!< период между точками "дампа", мсек */
...
...
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