From 5d771e119cf04e459216fa2500039bd58edc3c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Sat, 19 Feb 2022 12:33:19 -0500 Subject: [PATCH] c: install header to opendht directory --- CMakeLists.txt | 2 +- include/opendht/scheduler.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e48079ff..9257e588 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -428,7 +428,7 @@ if (OPENDHT_C) ) install (TARGETS opendht-c DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht-c) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendht-c.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) - install (FILES c/opendht_c.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include) + install (FILES c/opendht_c.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/opendht) endif () if (OPENDHT_TOOLS) diff --git a/include/opendht/scheduler.h b/include/opendht/scheduler.h index 01cee921..1f7b9bcc 100644 --- a/include/opendht/scheduler.h +++ b/include/opendht/scheduler.h @@ -84,6 +84,7 @@ public: * @return The time for the next job to run. */ time_point run() { + size_t count {0}; while (not timers.empty()) { auto timer = timers.begin(); /* @@ -99,7 +100,9 @@ public: if (job->do_) job->do_(); + count++; } + std::cerr << "run " << count << " scheduled " << timers.size() << std::endl; return getNextJobTime(); } -- GitLab