pipeline: De-inline ConditionVarDummyImpl methods

This is the only ConditionVar implementation to import thread.h directly
This commit is contained in:
rdb 2022-01-30 00:32:51 +01:00
parent c66ca2ece1
commit f6322d8c93
3 changed files with 19 additions and 19 deletions

View File

@ -25,22 +25,6 @@ INLINE ConditionVarDummyImpl::
~ConditionVarDummyImpl() {
}
/**
*
*/
INLINE void ConditionVarDummyImpl::
wait() {
Thread::force_yield();
}
/**
*
*/
INLINE void ConditionVarDummyImpl::
wait(double) {
Thread::force_yield();
}
/**
*
*/

View File

@ -13,3 +13,20 @@
#include "selectThreadImpl.h"
#include "conditionVarDummyImpl.h"
#include "thread.h"
/**
*
*/
void ConditionVarDummyImpl::
wait() {
Thread::force_yield();
}
/**
*
*/
void ConditionVarDummyImpl::
wait(double) {
Thread::force_yield();
}

View File

@ -16,7 +16,6 @@
#include "pandabase.h"
#include "selectThreadImpl.h"
#include "thread.h"
#include "pnotify.h"
@ -31,8 +30,8 @@ public:
INLINE ConditionVarDummyImpl(MutexDummyImpl &mutex);
INLINE ~ConditionVarDummyImpl();
INLINE void wait();
INLINE void wait(double timeout);
void wait();
void wait(double timeout);
INLINE void notify();
INLINE void notify_all();
};