1 #ifndef __SIMPLE_THREAD_TEST_UTILS__
2 #define __SIMPLE_THREAD_TEST_UTILS__
13 std::unique_lock<std::mutex> log_lock();
16 std::cout << std::endl << std::flush;
19 template <
typename T,
typename... As>
20 inline void log(T&& t, As&&... as) {
22 log(std::forward<As>(as)...);
27 template <
typename... As>
28 inline void log(
const char* func, As&&... as) {
29 auto lk = detail::log_lock();
30 detail::log(
"[", func,
"] ", std::forward<As>(as)...);
34 template <
typename CONTEXT_WRAPPER_T>
40 std::string test_str = ss.str();
48 virtual void test() = 0;
Definition: simple_thread_test_utils.hpp:35