Skip to content

Instantly share code, notes, and snippets.

@abhiguru
Created March 3, 2016 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhiguru/d90bae044c6a06e2e742 to your computer and use it in GitHub Desktop.
Save abhiguru/d90bae044c6a06e2e742 to your computer and use it in GitHub Desktop.
for(std::vector<InputImage>::iterator it = imgVec.begin(); it != imgVec.end() ; ++it){
folly::Future<InputImage> tempFt = folly::via(&cpuThreadPoolExecutor,
std::bind(vcu::follyPerformDetection, *it.base(), frontalClassifiers[i], detectConfig.outHeight));
tempFt.then(vcu::onThreadComplete);
fs.push_back(tempFt);
}
folly::collectAll(fs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment