Leaked source code of windows server 2003
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

  1. #if !defined(MOTION__Scheduler_inl__INCLUDED)
  2. #define MOTION__Scheduler_inl__INCLUDED
  3. #pragma once
  4. //------------------------------------------------------------------------------
  5. inline void
  6. Scheduler::Enter()
  7. {
  8. m_lock.Enter();
  9. #if DBG
  10. InterlockedExchange(&m_DEBUG_fLocked, TRUE);
  11. #endif // DBG
  12. }
  13. //------------------------------------------------------------------------------
  14. inline void
  15. Scheduler::Leave()
  16. {
  17. #if DBG
  18. InterlockedExchange(&m_DEBUG_fLocked, FALSE);
  19. #endif // DBG
  20. m_lock.Leave();
  21. }
  22. #endif // MOTION__Scheduler_inl__INCLUDED