File: parallel_flat_hash_map_mutex_test.cc

package info (click to toggle)
parallel-hashmap 1.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,872 kB
  • sloc: cpp: 20,492; ansic: 1,114; python: 492; makefile: 85; haskell: 56; perl: 43; sh: 23
file content (14 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define THIS_HASH_MAP  parallel_flat_hash_map
#define THIS_TEST_NAME ParallelFlatHashMap

#if 1
    #define THIS_EXTRA_TPL_PARAMS , 4, std::mutex
#else
    #include <boost/thread/locks.hpp>
    #include <boost/thread/shared_mutex.hpp>
    #define THIS_EXTRA_TPL_PARAMS , 4, boost::upgrade_mutex
#endif

#define THIS_EXTRA_TPL_PARAMS_NULLMUTEX , 4, phmap::NullMutex

#include "parallel_hash_map_test.cc"