repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated log message for unmapped commands
[deb_libcec.git]
/
src
/
lib
/
platform
/
util
/
buffer.h
diff --git
a/src/lib/platform/util/buffer.h
b/src/lib/platform/util/buffer.h
index aa658ee61f231b4d111ba9d1a19a82bcfd3c17a8..28ba30cf3468bd61d7dac496d16b04f3ef23497b 100644
(file)
--- a/
src/lib/platform/util/buffer.h
+++ b/
src/lib/platform/util/buffer.h
@@
-2,7
+2,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-201
2
Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-201
3
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-31,7
+31,7
@@
* http://www.pulse-eight.net/
*/
* http://www.pulse-eight.net/
*/
-#include "
..
/threads/mutex.h"
+#include "
lib/platform
/threads/mutex.h"
#include <queue>
namespace PLATFORM
#include <queue>
namespace PLATFORM
@@
-54,6
+54,7
@@
namespace PLATFORM
CLockObject lock(m_mutex);
while (!m_buffer.empty())
m_buffer.pop();
CLockObject lock(m_mutex);
while (!m_buffer.empty())
m_buffer.pop();
+ m_bHasMessages = true;
m_condition.Broadcast();
}
m_condition.Broadcast();
}
@@
-94,11
+95,11
@@
namespace PLATFORM
}
// pop the first item
}
// pop the first item
+ m_bHasMessages = !m_buffer.empty();
if (!m_buffer.empty())
{
entry = m_buffer.front();
m_buffer.pop();
if (!m_buffer.empty())
{
entry = m_buffer.front();
m_buffer.pop();
- m_bHasMessages = !m_buffer.empty();
bReturn = true;
}
return bReturn;
bReturn = true;
}
return bReturn;