repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mark a device as powered on when receiving a stream path or routing change
[deb_libcec.git]
/
src
/
lib
/
platform
/
threads
/
mutex.h
diff --git
a/src/lib/platform/threads/mutex.h
b/src/lib/platform/threads/mutex.h
index 6fc57d140bcdf183a0745fa7d52d3b54a23c00c0..286cc3274dd6240e73acba22886188a64553063d 100644
(file)
--- a/
src/lib/platform/threads/mutex.h
+++ b/
src/lib/platform/threads/mutex.h
@@
-31,15
+31,15
@@
* http://www.pulse-eight.net/
*/
* http://www.pulse-eight.net/
*/
-#include "
..
/os.h"
+#include "
lib/platform
/os.h"
#if defined(__WINDOWS__)
#if defined(__WINDOWS__)
-#include "
..
/windows/os-threads.h"
+#include "
lib/platform
/windows/os-threads.h"
#else
#else
-#include "
..
/posix/os-threads.h"
+#include "
lib/platform
/posix/os-threads.h"
#endif
#endif
-#include "
..
/util/timeutils.h"
+#include "
lib/platform
/util/timeutils.h"
namespace PLATFORM
{
namespace PLATFORM
{
@@
-86,9
+86,12
@@
namespace PLATFORM
inline bool Lock(void)
{
inline bool Lock(void)
{
- MutexLock(m_mutex);
- ++m_iLockCount;
- return true;
+ if (MutexLock(m_mutex))
+ {
+ ++m_iLockCount;
+ return true;
+ }
+ return false;
}
inline void Unlock(void)
}
inline void Unlock(void)