├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── config.mk ├── include ├── atomic.h ├── cache.h ├── counter.h ├── hash.h ├── logging.h ├── mutex.h ├── slice.h ├── sliding_window.h ├── spin_lock.h ├── string_util.h ├── thread.h ├── thread_pool.h ├── timer.h ├── tprinter.h └── util.h ├── src ├── cache.cc ├── hash.cc ├── logging.cc └── tprinter.cc └── test ├── Makefile ├── build_test.sh ├── perf_test_condvar.cc ├── perf_test_counter.cc ├── perf_test_framework.cc ├── perf_test_mutex.cc ├── perf_test_thread_pool.cc ├── test_logging.cc ├── test_mutex.cc ├── test_thread.cc ├── test_thread_pool.cc └── test_util.cc /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/README.md -------------------------------------------------------------------------------- /config.mk: -------------------------------------------------------------------------------- 1 | # install path 2 | PREFIX=./output 3 | -------------------------------------------------------------------------------- /include/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/atomic.h -------------------------------------------------------------------------------- /include/cache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/cache.h -------------------------------------------------------------------------------- /include/counter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/counter.h -------------------------------------------------------------------------------- /include/hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/hash.h -------------------------------------------------------------------------------- /include/logging.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/logging.h -------------------------------------------------------------------------------- /include/mutex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/mutex.h -------------------------------------------------------------------------------- /include/slice.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/slice.h -------------------------------------------------------------------------------- /include/sliding_window.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/sliding_window.h -------------------------------------------------------------------------------- /include/spin_lock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/spin_lock.h -------------------------------------------------------------------------------- /include/string_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/string_util.h -------------------------------------------------------------------------------- /include/thread.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/thread.h -------------------------------------------------------------------------------- /include/thread_pool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/thread_pool.h -------------------------------------------------------------------------------- /include/timer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/timer.h -------------------------------------------------------------------------------- /include/tprinter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/tprinter.h -------------------------------------------------------------------------------- /include/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/include/util.h -------------------------------------------------------------------------------- /src/cache.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/src/cache.cc -------------------------------------------------------------------------------- /src/hash.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/src/hash.cc -------------------------------------------------------------------------------- /src/logging.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/src/logging.cc -------------------------------------------------------------------------------- /src/tprinter.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/src/tprinter.cc -------------------------------------------------------------------------------- /test/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/Makefile -------------------------------------------------------------------------------- /test/build_test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/build_test.sh -------------------------------------------------------------------------------- /test/perf_test_condvar.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/perf_test_condvar.cc -------------------------------------------------------------------------------- /test/perf_test_counter.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/perf_test_counter.cc -------------------------------------------------------------------------------- /test/perf_test_framework.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/perf_test_framework.cc -------------------------------------------------------------------------------- /test/perf_test_mutex.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/perf_test_mutex.cc -------------------------------------------------------------------------------- /test/perf_test_thread_pool.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/perf_test_thread_pool.cc -------------------------------------------------------------------------------- /test/test_logging.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/test_logging.cc -------------------------------------------------------------------------------- /test/test_mutex.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/test_mutex.cc -------------------------------------------------------------------------------- /test/test_thread.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/test_thread.cc -------------------------------------------------------------------------------- /test/test_thread_pool.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/test_thread_pool.cc -------------------------------------------------------------------------------- /test/test_util.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baidu/common/HEAD/test/test_util.cc --------------------------------------------------------------------------------