mutexWin32Impl.cxx 671 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file mutexWin32Impl.cxx
  10. * @author drose
  11. * @date 2006-02-07
  12. */
  13. #include "selectThreadImpl.h"
  14. #ifdef _WIN32
  15. #include "mutexWin32Impl.h"
  16. // The number of spins to do before suspending the thread.
  17. static const unsigned int spin_count = 4000;
  18. /**
  19. *
  20. */
  21. ReMutexWin32Impl::
  22. ReMutexWin32Impl() {
  23. InitializeCriticalSectionAndSpinCount(&_lock, spin_count);
  24. }
  25. #endif // _WIN32