mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
library changes to get libtemporal setup at application startup
This commit is contained in:
parent
d2a94468d4
commit
8dbbc1df54
6 changed files with 53 additions and 15 deletions
|
|
@ -144,11 +144,19 @@ template <class T>
|
|||
class /*LIBPBD_API*/ SerializedRCUManager : public RCUManager<T>
|
||||
{
|
||||
public:
|
||||
SerializedRCUManager (T* new_rcu_value)
|
||||
: RCUManager<T> (new_rcu_value)
|
||||
SerializedRCUManager(T* new_rcu_value)
|
||||
: RCUManager<T>(new_rcu_value)
|
||||
, current_write_old (0)
|
||||
{
|
||||
}
|
||||
|
||||
void init (boost::shared_ptr<T> new_rcu_value) {
|
||||
assert (*RCUManager<T>::x.m_rcu_value == boost::shared_ptr<T> ());
|
||||
|
||||
boost::shared_ptr<T>* new_spp = new boost::shared_ptr<T> (new_rcu_value);
|
||||
g_atomic_pointer_set (&RCUManager<T>::x.gptr, new_spp);
|
||||
}
|
||||
|
||||
boost::shared_ptr<T> write_copy ()
|
||||
{
|
||||
_lock.lock ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue