Lines Matching refs:threads
58 if (!gGlobal) { // If we have no threads, the work must already be done.
80 // We threads gotta stick together. We're always making forward progress.
99 explicit ThreadPool(int threads) {
100 if (threads == -1) {
101 threads = sk_num_cores();
103 for (int i = 0; i < threads; i++) {
181 // We make do, but this means some worker threads may wake spuriously.
194 SkTaskGroup::Enabler::Enabler(int threads) {
196 if (threads != 0) {
197 ThreadPool::gGlobal = new ThreadPool(threads);