Ardour
9.0-pre0-582-g084a23a80d
|
#include <rcu.h>
Public Member Functions | |
RCUWriter (RCUManager< T > &manager) | |
~RCUWriter () | |
std::shared_ptr< T > | get_copy () const |
Private Attributes | |
RCUManager< T > & | _manager |
std::shared_ptr< T > | _copy |
RCUWriter is a convenience object that implements write_copy/update via lifetime management. Creating the object obtains a writable copy, which can be obtained via the get_copy() method; deleting the object will update the manager's copy. Code doing a write/update thus looks like:
|
inline |
|
inline |
|
private |
|
private |