|
@@ -37,9 +37,12 @@ grpcclient::grpcclient(std::string stryamlpath)
|
|
|
mstrpicmsgname[3] = "h264right";
|
|
|
|
|
|
unsigned int i;
|
|
|
- for(i=0;i<mvectormsgunit.size();i++)
|
|
|
+ if(mbFrameUpdate)
|
|
|
{
|
|
|
- mvectormsgunit[i].mpa = iv::modulecomm::RegisterRecv(mvectormsgunit[i].mstrmsgname,ListenData);
|
|
|
+ for(i=0;i<mvectormsgunit.size();i++)
|
|
|
+ {
|
|
|
+ mvectormsgunit[i].mpa = iv::modulecomm::RegisterRecv(mvectormsgunit[i].mstrmsgname,ListenData);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
for(i=0;i<mvectorctrlmsgunit.size();i++)
|
|
@@ -54,12 +57,15 @@ grpcclient::grpcclient(std::string stryamlpath)
|
|
|
}
|
|
|
|
|
|
|
|
|
- for(i=0;i<NUM_CAM;i++)
|
|
|
+ if(mbFrameUpdate)
|
|
|
{
|
|
|
- unsigned int j;
|
|
|
- for(j=0;j<NUM_THREAD_PERCAM;j++)
|
|
|
+ for(i=0;i<NUM_CAM;i++)
|
|
|
{
|
|
|
- mpThread[i*NUM_THREAD_PERCAM + j] = new std::thread(&grpcclient::threadpicupload,this,i);
|
|
|
+ unsigned int j;
|
|
|
+ for(j=0;j<NUM_THREAD_PERCAM;j++)
|
|
|
+ {
|
|
|
+ mpThread[i*NUM_THREAD_PERCAM + j] = new std::thread(&grpcclient::threadpicupload,this,i);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|