mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-30 04:52:34 +01:00
00b568193c
Implemented in a similar style to FPEnvironment.
58 lines
713 B
C++
58 lines
713 B
C++
//
|
|
// Mutex.cpp
|
|
//
|
|
// $Id: //poco/1.4/Foundation/src/Mutex.cpp#2 $
|
|
//
|
|
// Library: Foundation
|
|
// Package: Threading
|
|
// Module: Mutex
|
|
//
|
|
// Copyright (c) 2004-2008, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Mutex.h"
|
|
|
|
|
|
#if defined(POCO_OS_FAMILY_WINDOWS)
|
|
#if defined(_WIN32_WCE)
|
|
#include "Mutex_WINCE.cpp"
|
|
#else
|
|
#include "Mutex_WIN32.cpp"
|
|
#endif
|
|
#elif defined(POCO_VXWORKS)
|
|
#include "Mutex_VX.cpp"
|
|
#else
|
|
#include "Mutex_POSIX.cpp"
|
|
#endif
|
|
|
|
|
|
namespace Poco {
|
|
|
|
|
|
Mutex::Mutex(MutexType type)
|
|
: MutexImpl((MutexTypeImpl) type)
|
|
{
|
|
}
|
|
|
|
|
|
Mutex::~Mutex()
|
|
{
|
|
}
|
|
|
|
|
|
FastMutex::FastMutex()
|
|
{
|
|
}
|
|
|
|
|
|
FastMutex::~FastMutex()
|
|
{
|
|
}
|
|
|
|
|
|
} // namespace Poco
|