#ifndef PASSPORTLOCK_HPP #define PASSPORTLOCK_HPP #include #include class PassportLock { public: PassportLock(DWORD dwSpinCount = 4000); void acquire(); void release(); ~PassportLock(); private: CRITICAL_SECTION mLock; }; #endif // !PASSPORTLOCK_HPP