Cycles: Use lock in the memory statistics

CPU rendering is allowed to allocate memory from multiple threads,
which means statistics need to be avare of this.
This commit is contained in:
Sergey Sharybin
2014-12-02 15:36:44 +05:00
parent e177c51430
commit ed935ae5ad
5 changed files with 44 additions and 4 deletions

View File

@@ -163,6 +163,10 @@ include_directories(
${OPENEXR_INCLUDE_DIRS}
)
# TODO(sergey): Adjust so standalone repository is also happy.
include_directories(
../atomic
)
# Warnings
if(CMAKE_COMPILER_IS_GNUCXX)