| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| benchmark.cc | ||
| colorprint.cc | ||
| colorprint.h | ||
| commandlineflags.cc | ||
| commandlineflags.h | ||
| cycleclock.h | ||
| mutex_lock.h | ||
| re.cc | ||
| re.h | ||
| sleep.cc | ||
| sleep.h | ||
| stat.h | ||
| sysinfo.cc | ||
| sysinfo.h | ||
| walltime.cc | ||
| walltime.h |
InitType should hold a lock before storing to approx_time_, which is later read by the background worker. When the worker is actively running (i.e., not blocked on bg_cond_) it holds bg_mutex_. InitType is called during benchmark setup only, so any contention induced for the mutex should not have performance/accuracy consequences.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| CMakeLists.txt | Loading commit data... | |
| benchmark.cc | Loading commit data... | |
| colorprint.cc | Loading commit data... | |
| colorprint.h | Loading commit data... | |
| commandlineflags.cc | Loading commit data... | |
| commandlineflags.h | Loading commit data... | |
| cycleclock.h | Loading commit data... | |
| mutex_lock.h | Loading commit data... | |
| re.cc | Loading commit data... | |
| re.h | Loading commit data... | |
| sleep.cc | Loading commit data... | |
| sleep.h | Loading commit data... | |
| stat.h | Loading commit data... | |
| sysinfo.cc | Loading commit data... | |
| sysinfo.h | Loading commit data... | |
| walltime.cc | Loading commit data... | |
| walltime.h | Loading commit data... |