Skip to content

Commit cb09647

Browse files
author
Dmitry Kozlov
committed
Fix GCC compilation
1 parent e9c052e commit cb09647

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

RadeonRays/src/accelerator/bvh2.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ namespace RadeonRays
227227
#else
228228
std::mutex mutex;
229229
std::condition_variable cv;
230-
std::atomic_bool shutdown = false;
231-
std::atomic_uint32_t num_refs_processed = 0;
230+
std::atomic_bool shutdown;
231+
std::atomic<std::uint32_t> num_refs_processed;
232+
233+
num_refs_processed.store(0);
234+
shutdown.store(false);
232235

233236
std::stack<SplitRequest> requests;
234237

RadeonRays/src/accelerator/bvh2.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@ THE SOFTWARE.
2525
#include <stack>
2626
#include <utility>
2727
#include <vector>
28+
#include <thread>
29+
#include <condition_variable>
2830
#include <mmintrin.h>
2931
#include <xmmintrin.h>
3032
#include <smmintrin.h>
3133

3234
#include "../primitive/mesh.h"
35+
#include "../primitive/instance.h"
36+
37+
#ifndef WIN32
38+
#define _MM_ALIGN16
39+
#endif
3340

3441
namespace RadeonRays
3542
{

0 commit comments

Comments
 (0)