You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
608 B
29 lines
608 B
#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
|