| 54 | |
| 55 | template <template <class, class> class OC> |
| 56 | void test_objcache(OC<std::string, std::string *> &oc, const char *name) { |
| 57 | std::vector<photon::join_handle *> jhs; |
| 58 | LOG_INFO("Query to ", name); |
| 59 | for (int i = 0; i < 4; i++) |
| 60 | jhs.emplace_back( |
| 61 | photon::thread_enable_join(photon::thread_create(task<OC>, &oc))); |
| 62 | for (auto &x : jhs) photon::thread_join(x); |
| 63 | } |
| 64 | |
| 65 | template <template <class, class> class OC> |
| 66 | void test(const char *name) { |
nothing calls this directly
no test coverage detected