/*
 * Copyright 2015 Telenav Inc. All rights reserved.
 */
#ifndef TN_FOUNDATION_THREAD_HPP
#define TN_FOUNDATION_THREAD_HPP

#include "foundation/cxx11compat.hpp"

#if _TN_FOUNDATION_USE_STD
#  include <thread>
#else
#  if !defined(TN_PLATFORM_WINDOWS) && !defined(TN_PLATFORM_WINCE)
#    define BOOST_THREAD_PLATFORM_PTHREAD
#  else
#    define BOOST_THREAD_PLATFORM_WIN32
#  endif //!defined(TN_PLATFORM_WINDOWS) && !defined(TN_PLATFORM_WINCE)
#  include "boost/thread/thread.hpp"
#endif 

namespace tn {
    using _TN_FOUNDATION_STD_NS::thread;
    namespace this_thread = _TN_FOUNDATION_STD_NS::this_thread;
}

#endif /* TN_FOUNDATION_THREAD_HPP */
