Searched refs:task_stat (Results 1 – 2 of 2) sorted by relevance
29 struct stat task_stat; in IsSingleThreadedImpl() local30 int fstat_ret = fstat(proc_self_task, &task_stat); in IsSingleThreadedImpl()34 CHECK_LE(3UL, task_stat.st_nlink); in IsSingleThreadedImpl()38 return task_stat.st_nlink == 3; in IsSingleThreadedImpl()76 struct stat task_stat; in StopThreadAndWatchProcFS() local78 fstatat(proc_self_task, thread_id_dir_str.c_str(), &task_stat, 0); in StopThreadAndWatchProcFS()
33 struct stat task_stat; in CountThreads() local34 int task_d = stat("/proc/self/task", &task_stat); in CountThreads()37 if (task_d != 0 || task_stat.st_nlink < 3) in CountThreads()39 const int num_threads = task_stat.st_nlink - 2; in CountThreads()