Mutex_WINCE.h 789 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // Mutex_WIN32.h
  3. //
  4. // Library: Foundation
  5. // Package: Threading
  6. // Module: Mutex
  7. //
  8. // Definition of the MutexImpl and FastMutexImpl classes for WIN32.
  9. //
  10. // Copyright (c) 2004-2010, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef Foundation_Mutex_WINCE_INCLUDED
  16. #define Foundation_Mutex_WINCE_INCLUDED
  17. #include "Poco/Foundation.h"
  18. #include "Poco/Exception.h"
  19. #include "Poco/UnWindows.h"
  20. namespace Poco {
  21. class Foundation_API MutexImpl
  22. {
  23. protected:
  24. MutexImpl();
  25. ~MutexImpl();
  26. void lockImpl();
  27. bool tryLockImpl();
  28. bool tryLockImpl(long milliseconds);
  29. void unlockImpl();
  30. private:
  31. HANDLE _mutex;
  32. };
  33. typedef MutexImpl FastMutexImpl;
  34. } // namespace Poco
  35. #endif // Foundation_Mutex_WINCE_INCLUDED