mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 03:08:31 +01:00
b0581433a7
fix: remove executable flag and change back to 100644 (was 100755) Signed-off-by: Roger Meier <r.meier@siemens.com>
48 lines
677 B
C++
48 lines
677 B
C++
//
|
|
// Semaphore.cpp
|
|
//
|
|
// $Id: //poco/1.4/Foundation/src/Semaphore.cpp#2 $
|
|
//
|
|
// Library: Foundation
|
|
// Package: Threading
|
|
// Module: Semaphore
|
|
//
|
|
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Semaphore.h"
|
|
|
|
|
|
#if defined(POCO_OS_FAMILY_WINDOWS)
|
|
#include "Semaphore_WIN32.cpp"
|
|
#elif defined(POCO_VXWORKS)
|
|
#include "Semaphore_VX.cpp"
|
|
#else
|
|
#include "Semaphore_POSIX.cpp"
|
|
#endif
|
|
|
|
|
|
namespace Poco {
|
|
|
|
|
|
Semaphore::Semaphore(int n): SemaphoreImpl(n, n)
|
|
{
|
|
}
|
|
|
|
|
|
Semaphore::Semaphore(int n, int max): SemaphoreImpl(n, max)
|
|
{
|
|
}
|
|
|
|
|
|
Semaphore::~Semaphore()
|
|
{
|
|
}
|
|
|
|
|
|
} // namespace Poco
|