]> git.sesse.net Git - casparcg/commitdiff
2.0.0.2: Moved safe_ptr from utility to memory folder.
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 11 Jan 2011 22:54:15 +0000 (22:54 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 11 Jan 2011 22:54:15 +0000 (22:54 +0000)
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@333 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d

17 files changed:
common/common.vcxproj
common/common.vcxproj.filters
common/io/AsyncEventServer.h
common/memory/safe_ptr.h [moved from common/utility/safe_ptr.h with 100% similarity]
core/StdAfx.h
core/channel.h
core/consumer/frame_consumer.h
core/consumer/frame_consumer_device.h
core/consumer/ogl/ogl_consumer.cpp
core/processor/frame_processor_device.h
core/processor/ogl_device.h
core/processor/read_frame.h
core/producer/ffmpeg/ffmpeg_producer.h
core/producer/ffmpeg/video/video_decoder.cpp
core/producer/frame_producer.h
core/producer/layer.cpp
core/producer/layer.h

index b0f850144f51606f0347efcb938807326039284e..977a66114a7b803e7d3be684eb7b00d8812a05fd 100644 (file)
     <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
index 525a264a9571b575c2c5bd2d7194c33a4e5d3641..734dc67ea3103ba460d3062201be65030350cf24 100644 (file)
@@ -93,9 +93,6 @@
     <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
index 37e9c8875ccaecd7c3d81cfc6b03753c07438c26..4c1f0ec3ccde7e26c19e4463a60dbbe706c851d9 100644 (file)
@@ -28,7 +28,7 @@
 #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
index 59192e4bb7f34ed43b3f7385b38dc76ef2154f9b..39d599016d46a296120fcb737385bd4af56f06ea 100644 (file)
@@ -75,7 +75,7 @@
 #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
index 99a125755fea8a9f3152b1f7e38ed05517d4b3b5..d393565636c1c6597538d5e6c98c06055d221ca6 100644 (file)
@@ -3,7 +3,7 @@
 #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
index 8b01c6ffe609c39d29289641e2d09c499e4fe17f..48b7de41170837582e8d6ec35657c605c5ed38ae 100644 (file)
@@ -19,7 +19,7 @@
 */\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
index 27cf597691ebf5672878ac0c7c91b04db8755044..c978c505d36a89ded2692c0da344c39de0ac3492 100644 (file)
@@ -2,7 +2,7 @@
 \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
index 3c28f80772de4b591ea59a8106712acb3a804418..50205c608ed8a2ca3a7a2ea8d84eccf3e1c2adec 100644 (file)
@@ -27,7 +27,7 @@
 \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
index 04cacd55defdda50439825ed61016ccb11d1236b..3e8a01ddf4da745c24cc8157b5d6acd95e77092e 100644 (file)
@@ -26,7 +26,7 @@
 \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
index 35a95dcdc272f0acfa4a033a482ddd17860929f7..fe438e56ff43b00ed8bf43e485a23a8b8e3918be 100644 (file)
@@ -4,7 +4,7 @@
 #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
index 7e2b10e5e6a1506632ed617b70fc110ea2a3ad6f..100bc6f70db95cd8b4ce010f7413225b4edcf9f3 100644 (file)
@@ -8,7 +8,7 @@
 #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
index 8be774089f0e842f73b92e01822ed119b2116da6..a4c0520cc935869714af4d19e8df4a3ad7bc1761 100644 (file)
@@ -2,7 +2,7 @@
 \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
index 87716cce76117a80adf14ce34cfe3aa2bda41fc3..0524543c730e4e847b2bf085dd53cd5c5705c79a 100644 (file)
@@ -6,7 +6,7 @@
 #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
index 1878bd071e97555a42ec40d88b4a1c959dc22958..e45b7ad29892d8add3266c58599d5c5437b6b036 100644 (file)
@@ -22,7 +22,7 @@
 #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
index b32cdc568873be8070443b46c93f37c277cee36f..05754fae06fdef1e132e28c0b39443883bc21a53 100644 (file)
@@ -17,10 +17,10 @@ struct layer::implementation : boost::noncopyable
        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
@@ -109,7 +109,7 @@ public:
        }\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
index 0b353a36b4acb8b5077120db959e22e6081cea7d..dabb839fb548711349e834574d9b6ccc76c9d11d 100644 (file)
@@ -1,6 +1,6 @@
 #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
@@ -12,7 +12,7 @@ class draw_frame;
 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