X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fthread%2Fwin32%2Fthread_data.hpp;h=b1a550af44c383f33cbc969f5cb57f5aa5386a1f;hb=92f5a8d42d07f9929ae4fa7e01342fe8d96808a8;hp=f87889efa7985798febd088a3185c21342ad1666;hpb=a0324939f9d0e1905d5df8f57442f09dc70af83d;p=ceph.git diff --git a/ceph/src/boost/boost/thread/win32/thread_data.hpp b/ceph/src/boost/boost/thread/win32/thread_data.hpp index f87889efa..b1a550af4 100644 --- a/ceph/src/boost/boost/thread/win32/thread_data.hpp +++ b/ceph/src/boost/boost/thread/win32/thread_data.hpp @@ -80,12 +80,15 @@ namespace boost struct thread_exit_callback_node; struct tss_data_node { - boost::shared_ptr func; + typedef void(*cleanup_func_t)(void*); + typedef void(*cleanup_caller_t)(cleanup_func_t, void*); + + cleanup_caller_t caller; + cleanup_func_t func; void* value; - tss_data_node(boost::shared_ptr func_, - void* value_): - func(func_),value(value_) + tss_data_node(cleanup_caller_t caller_,cleanup_func_t func_,void* value_): + caller(caller_),func(func_),value(value_) {} }; @@ -113,8 +116,10 @@ namespace boost > notify_list_t; notify_list_t notify; +//#ifndef BOOST_NO_EXCEPTIONS typedef std::vector > async_states_t; async_states_t async_states_; +//#endif //#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS // These data must be at the end so that the access to the other fields doesn't change // when BOOST_THREAD_PROVIDES_INTERRUPTIONS is defined @@ -129,8 +134,10 @@ namespace boost thread_exit_callbacks(0), id(0), tss_data(), - notify(), - async_states_() + notify() +//#ifndef BOOST_NO_EXCEPTIONS + , async_states_() +//#endif //#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS , interruption_handle(create_anonymous_event(detail::win32::manual_reset_event,detail::win32::event_initially_reset)) , interruption_enabled(true) @@ -166,11 +173,12 @@ namespace boost notify.push_back(std::pair(cv, m)); } +//#ifndef BOOST_NO_EXCEPTIONS void make_ready_at_thread_exit(shared_ptr as) { async_states_.push_back(as); } - +//#endif }; BOOST_THREAD_DECL thread_data_base* get_current_thread_data();