fixed multi GPU API, added driver_api prefix to multi gpu samples
authorAlexey Spizhevoy <no@email>
Tue, 15 Feb 2011 09:12:48 +0000 (09:12 +0000)
committerAlexey Spizhevoy <no@email>
Tue, 15 Feb 2011 09:12:48 +0000 (09:12 +0000)
modules/gpu/include/opencv2/gpu/gpu.hpp
modules/gpu/src/multi_gpu_mgr.cpp
samples/gpu/driver_api_multi.cpp [moved from samples/gpu/multi.cpp with 100% similarity]
samples/gpu/driver_api_stereo_multi.cpp [moved from samples/gpu/stereo_multi.cpp with 100% similarity]

index bb152c3..173e45d 100644 (file)
@@ -138,6 +138,7 @@ namespace cv
         {\r
         public:\r
             MultiGpuMgr();\r
+            ~MultiGpuMgr();\r
 \r
             // Makes the given GPU active\r
             void gpuOn(int gpu_id);\r
@@ -148,8 +149,10 @@ namespace cv
             static const int BAD_GPU_ID = -1;\r
 \r
         private:\r
-            class Impl;\r
+            void operator=(const MultiGpuMgr&);\r
+            MultiGpuMgr(const MultiGpuMgr&);\r
 \r
+            class Impl;\r
             Ptr<Impl> impl_;\r
         };\r
 \r
index 51fc5c4..c435073 100644 (file)
@@ -117,6 +117,7 @@ MultiGpuMgr::Impl::Impl(): num_devices_(0)
 
 
 MultiGpuMgr::MultiGpuMgr(): impl_(new Impl()) {}
+MultiGpuMgr::~MultiGpuMgr() {}
 
 
 void MultiGpuMgr::gpuOn(int gpu_id)