update gperftools-testharness.sh
let condvar has its own mutex
added arraysize helper from chrome project
minor update
proper condvar
fix g++ warnings
fix condvar timedwait func; no static mutex

use pthread_mutex_t and PTHREAD_MUTEX_INITIALIZER instead
add missing header
use auto& for loops
Merge branch 'master' of github.com:santazhang/base-utils
NULL -> nullptr
minor update
minor fix for mac
minor update on spinlock