Searched refs:ntasks (Results 1 – 5 of 5) sorted by relevance
43 int ntasks = tasks.size(); in doInvokeAny() local44 if (ntasks == 0) in doInvokeAny()46 List<Future<T>> futures= new ArrayList<Future<T>>(ntasks); in doInvokeAny()56 --ntasks; in doInvokeAny()62 if (ntasks > 0) { in doInvokeAny()63 --ntasks; in doInvokeAny()
221 int ntasks = 0; in thread_map__new_by_tid_str() local251 ntasks++; in thread_map__new_by_tid_str()252 nt = realloc(threads, sizeof(*threads) + sizeof(pid_t) * ntasks); in thread_map__new_by_tid_str()258 threads->map[ntasks - 1] = tid; in thread_map__new_by_tid_str()259 threads->nr = ntasks; in thread_map__new_by_tid_str()
610 int ntasks = tasks.size(); in invokeAnyImpl() local611 checkArgument(ntasks > 0); in invokeAnyImpl()612 List<Future<T>> futures = Lists.newArrayListWithCapacity(ntasks); in invokeAnyImpl()629 --ntasks; in invokeAnyImpl()635 if (ntasks > 0) { in invokeAnyImpl()636 --ntasks; in invokeAnyImpl()
566 size_t ntasks; in open_pid() local569 if (process_tasks(pid, &tasks, &ntasks) < 0) { in open_pid()576 for (i = 0; i < ntasks; ++i) in open_pid()583 if (have_all && old_ntasks == ntasks) in open_pid()585 old_ntasks = ntasks; in open_pid()
259 pid_t *ntasks = realloc(tasks, in process_tasks() local261 if (ntasks == NULL) in process_tasks()263 tasks = ntasks; in process_tasks()