[Boost-bugs] [Boost C++ Libraries] #5425: This patch will allow the user to obtain the users thread pointer from a thread group.

Subject: [Boost-bugs] [Boost C++ Libraries] #5425: This patch will allow the user to obtain the users thread pointer from a thread group.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-05 19:00:52


#5425: This patch will allow the user to obtain the users thread pointer from a
thread group.
------------------------------+---------------------------------------------
 Reporter: JDKunk@… | Owner: anthonyw
     Type: Patches | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.47.0 | Severity: Optimization
 Keywords: Thread Predicate |
------------------------------+---------------------------------------------
 The patch attached will allow users for boost::thread_group to find/remove
 threads from the thread group with use of a predicate. The most common use
 will be finding the currently running thread. I propose this function be
 added to the this_thread namespace. The patch is self-explanatory. The
 added code was modified from the remove_thread function. Finally, the
 function to obtain the currently running thread pointer has been added to
 the this_thread namespace in the thread_group file since a thread_group is
 a parameter. I thought about adding the find_running_thread to the
 thread_group class; however, the this_thread namespace seem more
 reasonable since this_thread deals with functions specifically designed
 for the currently running thread.

 Thanks,
 Jeff Kunkel

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5425>
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:06 UTC