Semaphore.cpp 677 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Semaphore.cpp
  3. //
  4. // $Id: //poco/1.4/Foundation/src/Semaphore.cpp#2 $
  5. //
  6. // Library: Foundation
  7. // Package: Threading
  8. // Module: Semaphore
  9. //
  10. // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #include "Poco/Semaphore.h"
  16. #if defined(POCO_OS_FAMILY_WINDOWS)
  17. #include "Semaphore_WIN32.cpp"
  18. #elif defined(POCO_VXWORKS)
  19. #include "Semaphore_VX.cpp"
  20. #else
  21. #include "Semaphore_POSIX.cpp"
  22. #endif
  23. namespace Poco {
  24. Semaphore::Semaphore(int n): SemaphoreImpl(n, n)
  25. {
  26. }
  27. Semaphore::Semaphore(int n, int max): SemaphoreImpl(n, max)
  28. {
  29. }
  30. Semaphore::~Semaphore()
  31. {
  32. }
  33. } // namespace Poco