[Boost-bugs] [Boost C++ Libraries] #9058: with_lock_guard function

Subject: [Boost-bugs] [Boost C++ Libraries] #9058: with_lock_guard function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-28 11:21:57

#9058: with_lock_guard function
 Reporter: ruslan_baratov@… | Owner: anthonyw
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
 There is example of with_lock_guard function in documentation.
 Generalized implementation:
 template <class Lockable, class Function, class... Args>
 auto with_lock_guard(
     Lockable& m,
     BOOST_FWD_REF(Function) f,
     BOOST_FWD_REF(Args)... args
 ) -> decltype(f(args...)) {
   boost::lock_guard<Lockable> lock(m);
   return f(args...);

 I can create patch, to what file should I add this? Or create new one?

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