Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Donald Chen
pc-ble-driver-sd_api_v6
Commits
742153a7
Commit
742153a7
authored
Feb 14, 2018
by
bencefr
Browse files
Reverted do-while to while loop
parent
2f649c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/common/transport/serialization_transport.cpp
View file @
742153a7
...
...
@@ -160,7 +160,8 @@ uint32_t SerializationTransport::send(uint8_t *cmdBuffer, uint32_t cmdLength, ui
// Event Thread
void
SerializationTransport
::
eventHandlingRunner
()
{
do
{
while
(
runEventThread
)
{
std
::
unique_lock
<
std
::
mutex
>
eventLock
(
eventMutex
);
eventWaitCondition
.
wait
(
eventLock
);
while
(
!
eventQueue
.
empty
())
...
...
@@ -194,7 +195,7 @@ void SerializationTransport::eventHandlingRunner()
eventLock
.
lock
();
}
}
while
(
runEventThread
);
}
}
// Read Thread
...
...
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