Lines Matching refs:workers
188 vector<sp<IBinder> > workers;
192 workers.push_back(serviceMgr->getService(generateServiceName(i)));
199 int target = rand() % workers.size();
202 status_t ret = workers[target]->transact(BINDER_NOP, data, &reply);
256 int workers = 2;
265 workers = atoi(argv[i+1]);
276 // Create all the workers and wait for them to spawn.
277 for (int i = 0; i < workers; i++) {
278 pipes.push_back(make_worker(i, iterations, workers));
283 // Run the workers and wait for completion.
285 cout << "waiting for workers to complete" << endl;
292 double iterations_per_sec = double(iterations * workers) / (chrono::duration_cast<chrono::nanoseconds>(end - start).count() / 1.0E9);
295 // Collect all results from the workers.
299 for (int i = 0; i < workers; i++) {
306 // Kill all the workers.
307 cout << "killing workers" << endl;
309 for (int i = 0; i < workers; i++) {