<ClInclude Include="io\SocketInfo.h" />\r
<ClInclude Include="log\log.h" />\r
<ClInclude Include="memory\page_locked_allocator.h" />\r
+ <ClInclude Include="memory\safe_ptr.h" />\r
<ClInclude Include="stdafx.h" />\r
- <ClInclude Include="utility\safe_ptr.h" />\r
<ClInclude Include="utility\string_convert.h" />\r
<ClInclude Include="utility\timer.h" />\r
</ItemGroup>\r
<ClInclude Include="utility\timer.h">\r
<Filter>Source\utility</Filter>\r
</ClInclude>\r
- <ClInclude Include="utility\safe_ptr.h">\r
- <Filter>Source\utility</Filter>\r
- </ClInclude>\r
<ClInclude Include="utility\string_convert.h">\r
<Filter>Source\utility</Filter>\r
</ClInclude>\r
<ClInclude Include="memory\page_locked_allocator.h">\r
<Filter>Source\memory</Filter>\r
</ClInclude>\r
+ <ClInclude Include="memory\safe_ptr.h">\r
+ <Filter>Source\memory</Filter>\r
+ </ClInclude>\r
</ItemGroup>\r
</Project>
\ No newline at end of file
#pragma once\r
#endif\r
\r
-#include "../utility/safe_ptr.h"\r
+#include "../memory/safe_ptr.h"\r
\r
#include <string>\r
#include <map>\r
#include <SFML/Audio.hpp>\r
\r
#include "../common/utility/string_convert.h"\r
-#include "../common/utility/safe_ptr.h"\r
+#include "../common/memory/safe_ptr.h"\r
//#include "../common/concurrency/executor.h" // Can't include this due to MSVC lambda bug\r
\r
#include "../common/log/Log.h"\r
#include "consumer/frame_consumer.h"\r
#include "producer/frame_producer.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <boost/noncopyable.hpp>\r
#include <boost/thread/future.hpp>\r
*/\r
#pragma once\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <boost/noncopyable.hpp>\r
\r
\r
#include "../consumer/frame_consumer.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <vector>\r
\r
\r
#include <common/gl/gl_check.h>\r
#include <common/concurrency/executor.h>\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <boost/thread.hpp>\r
\r
\r
#include "../format/video_format.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <tbb/concurrent_queue.h>\r
\r
#include "device_buffer.h"\r
\r
#include <common/concurrency/executor.h>\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <tbb/concurrent_unordered_map.h>\r
#include <tbb/concurrent_queue.h>\r
#include <memory>\r
#include <vector>\r
\r
-#include "../../common/utility/safe_ptr.h"\r
+#include "../../common/memory/safe_ptr.h"\r
\r
namespace caspar { namespace core {\r
\r
\r
#include "../frame_producer.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <string>\r
#include <vector>\r
#include "../../../processor/draw_frame.h"\r
#include "../../../processor/frame_processor_device.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <tbb/parallel_for.h>\r
\r
#include "../processor/draw_frame.h"\r
#include "../processor/frame_processor_device.h"\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <boost/noncopyable.hpp>\r
\r
safe_ptr<draw_frame> last_frame_;\r
safe_ptr<frame_producer> foreground_;\r
safe_ptr<frame_producer> background_;\r
- const size_t index_;\r
+ const int index_;\r
\r
public:\r
- implementation(size_t index) \r
+ implementation(int index) \r
: foreground_(frame_producer::empty())\r
, background_(frame_producer::empty())\r
, last_frame_(draw_frame::empty())\r
}\r
};\r
\r
-layer::layer(size_t index) : impl_(new implementation(index)){}\r
+layer::layer(int index) : impl_(new implementation(index)){}\r
layer::layer(layer&& other) : impl_(std::move(other.impl_)){other.impl_ = nullptr;}\r
layer& layer::operator=(layer&& other)\r
{\r
#pragma once\r
\r
-#include <common/utility/safe_ptr.h>\r
+#include <common/memory/safe_ptr.h>\r
\r
#include <boost/noncopyable.hpp>\r
\r
class layer : boost::noncopyable\r
{\r
public:\r
- layer(size_t index = -1); // nothrow\r
+ layer(int index = -1); // nothrow\r
layer(layer&& other); // nothrow\r
layer& operator=(layer&& other); // nothrow\r
\r