2012-04-29 20:52:25 +02:00
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-29 20:52:25 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#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 {
|
|
|
|
|
|
|
|
|
2015-01-14 11:48:22 +01:00
|
|
|
Mutex::Mutex(MutexType type)
|
|
|
|
: MutexImpl((MutexTypeImpl) type)
|
2012-04-29 20:52:25 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Mutex::~Mutex()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FastMutex::FastMutex()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
FastMutex::~FastMutex()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Poco
|