pans
2017-08-18 7572cd33f27b512691b6acf39cd0d78d35017a46
VisitFace/RtspNativeCodec/app/src/main/cpp/cpu_sched_test.cpp
@@ -32,16 +32,22 @@
   //CPU_CLR(0x0004, &mask);
   //CPU_CLR(0x0005, &mask);
   CPU_SET(0x0000, &mask);
   CPU_SET(0x0001, &mask);
   CPU_SET(0x0002, &mask);
   CPU_SET(0x0003, &mask);
   CPU_SET(0x0004, &mask);
   CPU_SET(0x0005, &mask);
   if (sched_setaffinity(0, sizeof(mask), &mask) == -1)
   {
      LOG_ERROR << "warning: could not set CPU affinity" << LOG_ENDL;
   }
   for(int i= 0; i< num; i++)
   {
      LOG_ERROR << "cpu " << i <<": " << CPU_ISSET(i, &mask) <<LOG_ENDL;
   }
    //CPU_SET(id, &mask);
    if (sched_setaffinity(0, sizeof(mask), &mask) == -1)
    {
      LOG_ERROR << "warning: could not set CPU affinity" << LOG_ENDL;
    }
}
void cpu_sched()