Windows2003-3790/windows/advcore/duser/engine/motion/scheduler.inl
2020-09-30 16:53:55 +02:00

30 lines
608 B
C++

#if !defined(MOTION__Scheduler_inl__INCLUDED)
#define MOTION__Scheduler_inl__INCLUDED
#pragma once
//------------------------------------------------------------------------------
inline void
Scheduler::Enter()
{
m_lock.Enter();
#if DBG
InterlockedExchange(&m_DEBUG_fLocked, TRUE);
#endif // DBG
}
//------------------------------------------------------------------------------
inline void
Scheduler::Leave()
{
#if DBG
InterlockedExchange(&m_DEBUG_fLocked, FALSE);
#endif // DBG
m_lock.Leave();
}
#endif // MOTION__Scheduler_inl__INCLUDED