Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Geithner, Thomas
desk-control
Commits
1027f06e
Commit
1027f06e
authored
Sep 20, 2017
by
Geithner, Thomas
Browse files
minor fix
parent
c727af29
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/message-queue.h
View file @
1027f06e
...
@@ -164,7 +164,7 @@ public:
...
@@ -164,7 +164,7 @@ public:
T
&
getMessage
(
const
std
::
chrono
::
duration
<
Rep
,
Period
>&
timeout
){
T
&
getMessage
(
const
std
::
chrono
::
duration
<
Rep
,
Period
>&
timeout
){
std
::
unique_lock
<
std
::
mutex
>
lck
(
m_queueMtx
);
std
::
unique_lock
<
std
::
mutex
>
lck
(
m_queueMtx
);
while
(
m_isValid
&&
!
m_closed
){
while
(
!
m_isValid
&&
!
m_closed
){
//m_queueCond.wait(lck);
//m_queueCond.wait(lck);
auto
st
=
m_queueCond
.
wait_for
(
lck
,
timeout
);
auto
st
=
m_queueCond
.
wait_for
(
lck
,
timeout
);
...
...
Write
Preview
Supports
Markdown
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