benchmark/src
Chris Kennelly 54e18b8992 Resolve benchmark cleanup race condition in issue #20.
The multithreaded API for benchmarks provides that teardown can happen in
thread 0.  For this to be safe, all other threads executing the benchmark
function need to have exited.  Otherwise, thread 0 may begin to teardown shared
resources before the other threads have stopped using these resources as they
are in their last loop of while (KeepRunning()) { ... }.

This change creates a single exit point for KeepRunning() to return false.
When running a multithreaded benchmark, thread 0 blocks on KeepRunning() until
all other threads have exited.  This approach allows for there to be no change
to the user-facing API exemplified in the BM_MultiThreaded example.
2014-05-05 09:38:08 -07:00
..
benchmark.cc Resolve benchmark cleanup race condition in issue #20. 2014-05-05 09:38:08 -07:00
CMakeLists.txt Partially resolve google/benchmark#17 by fixing regular expression leak. 2014-04-23 00:56:17 -07:00
colorprint.cc More formatting tweaks 2014-01-09 12:19:02 -08:00
colorprint.h Adding benchmark namespace and removing broken flags 2013-12-19 16:18:09 -08:00
commandlineflags.cc More formatting tweaks 2014-01-09 12:19:02 -08:00
commandlineflags.h More formatting tweaks 2014-01-09 12:19:02 -08:00
cycleclock.h Fix cycleclock.h for gcc/ARM. 2014-03-18 17:04:40 +01:00
mutex_lock.h Code reformat 2014-01-09 12:12:11 -08:00
re.cc Partially resolve google/benchmark#17 by fixing regular expression leak. 2014-04-23 00:56:17 -07:00
re.h Partially resolve google/benchmark#17 by fixing regular expression leak. 2014-04-23 00:56:17 -07:00
sleep.cc More formatting tweaks 2014-01-09 12:19:02 -08:00
sleep.h [#4] A few minor changes. 2014-01-20 22:32:16 -08:00
stat.h More formatting tweaks 2014-01-09 12:19:02 -08:00
sysinfo.cc Move linux-only variable into linux/cygwin block 2014-01-16 13:20:59 -08:00
sysinfo.h Adding benchmark namespace and removing broken flags 2013-12-19 16:18:09 -08:00
walltime.cc More formatting tweaks 2014-01-09 12:19:02 -08:00
walltime.h Fix printing of time 2013-12-19 16:23:25 -08:00