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
6eee10fc
Commit
6eee10fc
authored
Feb 26, 2014
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Немного переделал код, где используется erase в цикле
parent
3dc76a38
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ModbusTCPServer.cc
src/Communications/Modbus/ModbusTCPServer.cc
+1
-1
IONotifyController.cc
src/Processes/IONotifyController.cc
+1
-1
LT_Object.cc
src/Various/LT_Object.cc
+2
-2
No files found.
src/Communications/Modbus/ModbusTCPServer.cc
View file @
6eee10fc
...
@@ -385,7 +385,7 @@ void ModbusTCPServer::sessionFinished( ModbusTCPSession* s )
...
@@ -385,7 +385,7 @@ void ModbusTCPServer::sessionFinished( ModbusTCPSession* s )
{
{
slist
.
erase
(
i
);
slist
.
erase
(
i
);
sessCount
--
;
sessCount
--
;
break
;
return
;
}
}
}
}
}
}
...
...
src/Processes/IONotifyController.cc
View file @
6eee10fc
...
@@ -426,7 +426,7 @@ void IONotifyController::send( ConsumerListInfo& lst, UniSetTypes::SensorMessage
...
@@ -426,7 +426,7 @@ void IONotifyController::send( ConsumerListInfo& lst, UniSetTypes::SensorMessage
if
(
maxAttemtps
>
0
&&
--
(
li
->
attempt
)
<=
0
)
if
(
maxAttemtps
>
0
&&
--
(
li
->
attempt
)
<=
0
)
{
{
li
=
lst
.
clst
.
erase
(
li
);
li
=
lst
.
clst
.
erase
(
li
);
if
(
li
==
lst
.
clst
.
end
()
)
--
li
;
--
li
;
break
;
break
;
}
}
...
...
src/Various/LT_Object.cc
View file @
6eee10fc
...
@@ -86,10 +86,10 @@ timeout_t LT_Object::checkTimers( UniSetObject* obj )
...
@@ -86,10 +86,10 @@ timeout_t LT_Object::checkTimers( UniSetObject* obj )
if
(
!
li
->
curTick
)
if
(
!
li
->
curTick
)
{
{
li
=
tlst
.
erase
(
li
);
li
=
tlst
.
erase
(
li
);
if
(
li
==
tlst
.
end
()
)
--
li
;
--
li
;
if
(
tlst
.
empty
()
)
if
(
tlst
.
empty
()
)
sleepTime
=
UniSetTimer
::
WaitUpTime
;
sleepTime
=
UniSetTimer
::
WaitUpTime
;
continue
;
continue
;
}
}
else
if
(
li
->
curTick
>
0
)
else
if
(
li
->
curTick
>
0
)
...
...
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