#pragma once #include "pacer.h" class DxVsyncSource : public IVsyncSource { public: DxVsyncSource(Pacer* pacer); virtual ~DxVsyncSource(); virtual bool initialize(SDL_Window* window); private: static int vsyncThread(void* context); Pacer* m_Pacer; SDL_Thread* m_Thread; SDL_atomic_t m_Stopping; };