Perhaps we should rather implement this ourselves,
using <boost/atomic.hpp>
#include <malloc.h>
#endif
#include <malloc.h>
#endif
#include "pbd/spinlock.h"
using namespace PBD;
spinlock_t::spinlock_t ()
{
#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)
}
SpinLock::SpinLock (spinlock_t& lock)