Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5173: boost::this_thread::get_id is very slow
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-07 17:54:42
#5173: boost::this_thread::get_id is very slow
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: anthonyw
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: threads
Version: Boost 1.45.0 | Severity: Optimization
Resolution: | Keywords: boost::this_thread::get_id(), main thread, thread_specific_ptr
-------------------------------+--------------------------------------------
Comment (by anonymous):
please find attached a proposed solution to the speedup the access to
boost::this_thread::get_id, currently injected as inline code, but may of
course reside in an object file shared to platform independent code.
the solution for boost::main_thread does only work, if the dll is not load
delayed at runtime, because then the assumption for the recurring static
intialization in the singleton from boost::pool fails (before main) and
threading and also the wron id becomes and issue. perhaps a more
transparent solution, choosing the thread with the lowest (highets id ?)
woudl serve better ?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5173#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC