예제 #1
0
        // 查询----线程函数
        private void SearchTrafficEventTh(object VmBaseObj)
        {
            SearchViewModelBase vm            = (SearchViewModelBase)VmBaseObj;
            string CameraID                   = vm.FaceCameraId;
            List <FaceAlarmInfoV3_1> infoList = vm.SearchFaceAlarm(vm.FaceCameraId, vm.BeginTimeSec, vm.EndTimeSec, vm.BlackListStr);

            // 超时之后 不做处理
            if (m_OverTime)
            {
                return;
            }
            // if trafficInfoList == null 或者 count == 0
            else
            {
                // 添加数据
                lock (m_lockVar) {
                    if (null != infoList)
                    {
                        m_faceInfoList.AddRange(infoList);
                    }
                    m_DicFaceEvent[CameraID] = true;
                }
            }
        }