mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Yet another spinlock init hack for g++8 std::atomics
Perhaps we should rather implement this ourselves, using <boost/atomic.hpp>
This commit is contained in:
parent
63fee3b0c8
commit
684b364a8a
1 changed files with 4 additions and 1 deletions
|
|
@ -21,13 +21,16 @@
|
|||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "pbd/spinlock.h"
|
||||
|
||||
using namespace PBD;
|
||||
|
||||
spinlock_t::spinlock_t ()
|
||||
{
|
||||
l = BOOST_DETAIL_SPINLOCK_INIT;
|
||||
boost::detail::spinlock init = BOOST_DETAIL_SPINLOCK_INIT;
|
||||
std::memcpy (&l, &init, sizeof (init));
|
||||
}
|
||||
|
||||
SpinLock::SpinLock (spinlock_t& lock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue