mirror of https://github.com/BOINC/boinc.git
![]() calls getrusage() in a signal handler to find its CPU time. Apparently there are some kernels and/or thread libraries where getrusage() does NOT return the total CPU time of all threads in the process, so in these cases calling it from the timer thread doesn't work. This was originally changed because of concerns that calling getrusage() in a signal handler was dangerous; we'll see if any problems re-emerge. The alternative of reading /proc/PID/stats doesn't seem viable; format may not be standardized. svn path=/trunk/boinc/; revision=14433 |
||
---|---|---|
.. | ||
Makefile.am | ||
backend_lib.C | ||
backend_lib.h | ||
cleanlogs.sh | ||
create_work.C | ||
create_work_example | ||
db_query | ||
dbcheck_files_exist | ||
dir_hier_move.C | ||
dir_hier_path.C | ||
grep_logs | ||
hr_db_convert.C | ||
kill_wu.C | ||
make_project | ||
makelog.sh | ||
parse_config | ||
poll_wu.C | ||
process_result_template.C | ||
project.xml | ||
run_in_ops | ||
sign_executable.C | ||
uc_result | ||
uc_wu | ||
update_versions | ||
update_versions_v6 | ||
updater.C | ||
upgrade | ||
vote_monitor | ||
watch_tcp | ||
xadd |