repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: resolve condition methods at runtime
[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 a203fbf110a61ebc7b070c573877b720d4e5917c..d44c0f1953b532da1cfd81a22eaac01bf0fe4048 100644
(file)
--- a/
src/lib/platform/threads/mutex.h
+++ b/
src/lib/platform/threads/mutex.h
@@
-166,30
+166,25
@@
namespace PLATFORM
class CCondition : public PreventCopy
{
public:
class CCondition : public PreventCopy
{
public:
- inline CCondition(void)
- {
- ConditionCreate(m_condition);
- }
-
+ inline CCondition(void) {}
inline ~CCondition(void)
{
inline ~CCondition(void)
{
- Broadcast();
- ConditionDelete(m_condition);
+ m_condition.Broadcast();
}
inline void Broadcast(void)
{
}
inline void Broadcast(void)
{
-
ConditionBroadcast(m_condition
);
+
m_condition.Broadcast(
);
}
inline void Signal(void)
{
}
inline void Signal(void)
{
-
ConditionSignal(m_condition
);
+
m_condition.Signal(
);
}
inline bool Wait(CMutex &mutex, uint32_t iTimeout = 0)
{
}
inline bool Wait(CMutex &mutex, uint32_t iTimeout = 0)
{
- return
ConditionWait(m_condition,
mutex.m_mutex, iTimeout);
+ return
m_condition.Wait(
mutex.m_mutex, iTimeout);
}
static void Sleep(uint32_t iTimeout)
}
static void Sleep(uint32_t iTimeout)
@@
-200,6
+195,7
@@
namespace PLATFORM
w.Wait(m, iTimeout);
}
w.Wait(m, iTimeout);
}
- condition_t m_condition;
+ private:
+ CConditionImpl m_condition;
};
}
};
}