• 大小: 3.96M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-24
  • 语言: C/C++
  • 标签: 3d  

资源简介

光学分选机缺陷检测(大华SDK抓取)

资源截图

代码片段和文件信息


#include “StdAfx.h“
#include “locking.h“


baseLock::baseLock() 
{
}

baseLock::~baseLock()
{
}  

//
// CriticalSectionEx class
//

CriticalSectionEx::CriticalSectionEx() :baseLock()
{
   InitializeCriticalSection(&m_criticalSection);
   m_lockCounter=0;
}
CriticalSectionEx::CriticalSectionEx(const CriticalSectionEx& b):baseLock()
{
   InitializeCriticalSection(&m_criticalSection);
   m_lockCounter=0; 
}     

CriticalSectionEx::~CriticalSectionEx()
{
   //assert(m_lockCounter==0);
   DeleteCriticalSection(&m_criticalSection);
}  

bool CriticalSectionEx::Lock()
{
   EnterCriticalSection(&m_criticalSection);
   m_lockCounter++;
   return true;
}
long CriticalSectionEx::TryLock()
{
   long ret=TryEnterCriticalSection(&m_criticalSection);
   if(ret)
      m_lockCounter++;
   return ret;
}       

long CriticalSectionEx::TryLockFor(const unsigned int dwMilliSecond)
{
   long ret=0;
   if(ret=TryEnterCriticalSection(&m_criticalSection))

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件         53  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\readme.txt

     文件        459  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\ApiState.h

     文件       1078  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\app.ico

     文件       2626  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\app.rc

     文件      13198  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\CppSamples.h

     文件       1714  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\locking.cpp

     文件        902  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\locking.h

     文件       2710  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\PackagedImage.h

     文件       5810  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\PropertySheets\sr_api_cpp_sample.props

     文件       6236  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\PropertySheets\sr_api_cpp_sample_DEV.props

     文件       1759  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\ReadMe.txt

     文件         91  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\resource.h

     文件       1164  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SampleRunner.h

     文件      40507  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\Sensor.cpp

     文件      11871  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\Sensor.h

     文件       3727  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorImageData.cpp

     文件       1888  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorImageData.h

     文件      11607  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorManager.cpp

     文件       3966  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorManager.h

     文件       6485  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorPointCloud.h

     文件       2618  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorPointcloudMSR.h

     文件        949  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\SensorState.h

     文件       3467  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\sr_api_cpp_sample.cpp

     文件       6781  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\sr_api_cpp_sample.vcxproj

     文件       6747  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\sr_api_cpp_sample_DEV.vcxproj

     文件        215  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\stdafx.cpp

     文件        281  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample\stdafx.h

     文件       1272  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_cpp_sample\sr_api_cpp_sample.sln

     文件         53  2018-12-14 23:59  smart_原生Demo\sr_api_samples\sr_api_csharp_sample\readme.txt

     文件        187  2018-12-14 23:54  smart_原生Demo\sr_api_samples\sr_api_csharp_sample\sr_api_cs_sample\App.config

............此处省略231个文件信息

评论

共有 条评论