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

pull/13/merge
niko 12 years ago
parent f17f4bda60
commit e7f4dd1a2e
  1. 6
      modules/ocl/src/initialization.cpp
  2. 4
      modules/ocl/src/threadsafe.cpp
  3. 6
      modules/ocl/src/threadsafe.h

@ -44,9 +44,9 @@
//M*/
#include "precomp.hpp"
#include "Threadsafe.h"
#include "threadsafe.h"
#include <iomanip>
#include "binaryCaching.hpp"
#include "binarycaching.hpp"
using namespace cv;
using namespace cv::ocl;
@ -775,7 +775,7 @@ namespace cv
{
if(val == 0)
{
AutoLock al(&cs);
myAutoLock al(&cs);
if( NULL == clCxt.get())
clCxt.reset(new Context);

@ -43,8 +43,8 @@
//
//M*/
#include "precomp.hpp"
#include "Threadsafe.h"
//#include "precomp.hpp"
#include "threadsafe.h"
CriticalSection::CriticalSection()
{

@ -65,15 +65,15 @@ protected:
#endif
};
class AutoLock
class myAutoLock
{
public:
explicit AutoLock(CriticalSection *lock)
explicit myAutoLock(CriticalSection *lock)
{
m_lock = lock;
m_lock->Lock();
};
~AutoLock()
~myAutoLock()
{
m_lock->Unlock();
};

Loading…
Cancel
Save