#ifndef MUTEX_H_
#define MUTEX_H_

#if (defined(TN_PLATFORM_WINPHONE) || defined(TN_PLATFORM_WINRT))
#include <mutex>
#include <foundation/SharedMutex.h>
namespace Tn
{
	namespace Foundation
	{
		using std::mutex;
		using std::timed_mutex;
	}
}

#else
#include <boost/thread/mutex.hpp>
#include <boost/thread/shared_mutex.hpp>
namespace Tn 
{
    namespace Foundation 
    {
        using boost::mutex;
		using boost::timed_mutex;
        using boost::shared_mutex;
        namespace Detail
        {
            using namespace boost::detail;
        }
    }
}

#endif
//#elif defined(TN_PLATFORM_WINCE)
//#include "impl/win/TnMutex_WinImp.h"

//#elif defined TN_PLATFORM_BREW
//#include "impl/brew/Mutex_BrewImp.h"

#endif    //!__MUTEX_H__
