src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp in passenger-6.0.8 vs src/cxx_supportlib/vendor-modified/boost/thread/detail/thread.hpp in passenger-6.0.9
- old
+ new
@@ -599,10 +599,13 @@
}
class BOOST_SYMBOL_VISIBLE thread::id
{
private:
+
+ #if !defined(BOOST_EMBTC)
+
friend inline
std::size_t
hash_value(const thread::id &v)
{
#if defined BOOST_THREAD_PROVIDES_BASIC_THREAD_ID
@@ -610,10 +613,18 @@
#else
return hash_value(v.thread_data.get());
#endif
}
+ #else
+
+ friend
+ std::size_t
+ hash_value(const thread::id &v);
+
+ #endif
+
#if defined BOOST_THREAD_PROVIDES_BASIC_THREAD_ID
#if defined(BOOST_THREAD_PLATFORM_WIN32)
typedef unsigned int data;
#else
typedef thread::native_handle_type data;
@@ -702,9 +713,24 @@
}
#endif
#endif
};
+
+#if defined(BOOST_EMBTC)
+
+ inline
+ std::size_t
+ hash_value(const thread::id &v)
+ {
+#if defined BOOST_THREAD_PROVIDES_BASIC_THREAD_ID
+ return hash_value(v.thread_data);
+#else
+ return hash_value(v.thread_data.get());
+#endif
+ }
+
+#endif
#ifdef BOOST_THREAD_PLATFORM_PTHREAD
inline thread::id thread::get_id() const BOOST_NOEXCEPT
{
#if defined BOOST_THREAD_PROVIDES_BASIC_THREAD_ID