/*+==========================================================================
 * Copyright (c) 2011 TeleNav, Inc
 * All rights reserved.
 * This program is UNPUBLISHED PROPRIETARY property of TeleNav.
 * Only for internal distribution.
 * 
 * FileName:    RecursiveMutex.h
 * Purpose:     Declaration of RecursiveMutex
 * Author:      yrliu@telenav.cn
 * Version:     2011/2/18
 * Description:
 ==========================================================================+*/ 

#ifndef TN_RECURSIVE_MUTEX_H_
#define TN_RECURSIVE_MUTEX_H_

#if (defined(TN_PLATFORM_WINPHONE) || defined(TN_PLATFORM_WINRT))
#include <mutex>
namespace Tn
{
	namespace Foundation
	{
		using std::recursive_mutex;
	}
}

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

#endif    //!(defined(TN_PLATFORM_WINPHONE) || defined(TN_PLATFORM_WINRT))

#endif    //!__TN_RECURSIVE_MUTEX_H__
