Re: svn commit: r1849445 - /subversion/trunk/subversion/bindings/cxx/src/aprwrap/impl.cpp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r1849445 - /subversion/trunk/subversion/bindings/cxx/src/aprwrap/impl.cpp

Branko Čibej
On 21.12.2018 00:49, [hidden email] wrote:

> Author: brane
> Date: Thu Dec 20 23:49:25 2018
> New Revision: 1849445
>
> URL: http://svn.apache.org/viewvc?rev=1849445&view=rev
> Log:
> Use the standard call_once pattern to initialize the SVN++ global pool.
>
> * subversion/bindings/cxx/src/aprwrap/impl.cpp:
>    - Include <mutex>
>    - Do not include apr_time.h or private/svn_atomic.h.
>  (Pool::get_root_pool): Replace manual atomic initialization crud with
>   std::call_once and std::once_flag.

And this is where modern C++ really starts to shine.

-- Brane