View | Details | Raw Unified | Return to bug 221890 | Differences between
and this patch

Collapse All | Expand All

(-)b/graphics/appleseed/files/patch-src_appleseed_foundation_platform_thread.h (-1 / +13 lines)
Added Link Here
0
- 
1
--- src/appleseed/foundation/platform/thread.h.orig	2017-09-06 14:32:41 UTC
2
+++ src/appleseed/foundation/platform/thread.h
3
@@ -296,9 +296,8 @@ class APPLESEED_DLLSYMBOL ThreadFlag
4
 
5
 inline Spinlock::Spinlock()
6
 {
7
-    // todo: is there a simpler way to initialize m_sp in a platform-independent manner?
8
     boost::detail::spinlock initialized_sp = BOOST_DETAIL_SPINLOCK_INIT;
9
-    m_sp = initialized_sp;
10
+    std::memcpy(&m_sp, &initialized_sp, sizeof(initialized_sp));
11
 }
12
 
13
 inline bool Spinlock::try_lock()

Return to bug 221890