mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
pipeline: De-inline ConditionVarDummyImpl methods
This is the only ConditionVar implementation to import thread.h directly
This commit is contained in:
parent
c66ca2ece1
commit
f6322d8c93
@ -25,22 +25,6 @@ INLINE ConditionVarDummyImpl::
|
||||
~ConditionVarDummyImpl() {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INLINE void ConditionVarDummyImpl::
|
||||
wait() {
|
||||
Thread::force_yield();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
INLINE void ConditionVarDummyImpl::
|
||||
wait(double) {
|
||||
Thread::force_yield();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user