Commit e7f4dd1a authored by niko's avatar niko

temp build fix because the new core.hpp impact on this project

parent f17f4bda
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
//M*/ //M*/
#include "precomp.hpp" #include "precomp.hpp"
#include "Threadsafe.h" #include "threadsafe.h"
#include <iomanip> #include <iomanip>
#include "binaryCaching.hpp" #include "binarycaching.hpp"
using namespace cv; using namespace cv;
using namespace cv::ocl; using namespace cv::ocl;
...@@ -775,7 +775,7 @@ namespace cv ...@@ -775,7 +775,7 @@ namespace cv
{ {
if(val == 0) if(val == 0)
{ {
AutoLock al(&cs); myAutoLock al(&cs);
if( NULL == clCxt.get()) if( NULL == clCxt.get())
clCxt.reset(new Context); clCxt.reset(new Context);
......
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
// //
//M*/ //M*/
#include "precomp.hpp" //#include "precomp.hpp"
#include "Threadsafe.h" #include "threadsafe.h"
CriticalSection::CriticalSection() CriticalSection::CriticalSection()
{ {
......
...@@ -65,15 +65,15 @@ protected: ...@@ -65,15 +65,15 @@ protected:
#endif #endif
}; };
class AutoLock class myAutoLock
{ {
public: public:
explicit AutoLock(CriticalSection *lock) explicit myAutoLock(CriticalSection *lock)
{ {
m_lock = lock; m_lock = lock;
m_lock->Lock(); m_lock->Lock();
}; };
~AutoLock() ~myAutoLock()
{ {
m_lock->Unlock(); m_lock->Unlock();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment