36 #ifndef _ODE_THREADING_FAKE_SYNC_H_
37 #define _ODE_THREADING_FAKE_SYNC_H_
40 #include <ode/odeconfig.h>
41 #include <ode/error.h>
52 m_wakeup_state(
false),
53 m_state_is_permanent(
false)
57 bool InitializeObject() {
return true; }
60 void ResetWakeup() { m_wakeup_state =
false; m_state_is_permanent =
false; }
61 void WakeupAThread() { dIASSERT(!m_state_is_permanent); m_wakeup_state =
true; }
62 void WakeupAllThreads() { m_wakeup_state =
true; m_state_is_permanent =
true; }
68 bool m_state_is_permanent;
74 bool wait_result = m_wakeup_state;
78 m_wakeup_state = m_state_is_permanent;
98 bool InitializeObject() {
return true; }
102 bool TryLockMutex() {
return true; }
103 void UnlockMutex() { }
116 bool InitializeObject() {
return true; }
119 void RegisterToLull() { }
120 void WaitForLullAlarm() { dICHECK(
false); }
121 void UnregisterFromLull() { }
123 void SignalLullAlarmIfAnyRegistrants() { }
127 #endif // #ifndef _ODE_THREADING_FAKE_SYNC_H_
Definition: threading_fake_sync.h:48
Definition: threading.h:154
Definition: threading_fake_sync.h:111
Definition: threading_fake_sync.h:93