Skip to content

Commit 5283eda

Browse files
fixed clang tidy warnings
1 parent f6982bf commit 5283eda

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

ecal/dynamic_threadpool/dynamic_threadpool/src/dynamic_threadpool.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@
1818
*/
1919

2020
#include <dynamic_threadpool/dynamic_threadpool.h>
21-
2221
#include "dynamic_threadpool_impl.h"
2322

23+
#include <cstddef>
24+
#include <functional>
25+
#include <memory>
26+
27+
2428
DynamicThreadPool::DynamicThreadPool()
2529
: impl(std::make_unique<DynamicThreadPoolImpl>())
2630
{}

ecal/dynamic_threadpool/dynamic_threadpool/src/dynamic_threadpool_impl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "dynamic_threadpool_impl.h"
2121

2222
#include <cassert>
23+
#include <cstddef>
24+
#include <functional>
25+
#include <mutex>
26+
#include <thread>
2327

2428
DynamicThreadPoolImpl::DynamicThreadPoolImpl()
2529
{}

ecal/dynamic_threadpool/tests/src/dynamic_threadpool_test.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
* ========================= eCAL LICENSE =================================
1818
*/
1919

20-
#include <gtest/gtest.h>
21-
2220
#include <dynamic_threadpool/dynamic_threadpool.h>
2321

22+
#include <gtest/gtest.h>
2423
#include "atomic_signalable.h"
2524

26-
#include <thread>
2725
#include <chrono>
26+
#include <cstddef>
27+
#include <memory>
28+
#include <thread>
2829

2930
TEST(DynamicThreadpool, CreateAndDelete)
3031
{
@@ -226,7 +227,7 @@ TEST(DynamicThreadPool, Shutdown)
226227
thread_pool.Shutdown();
227228

228229
// Test that adding another task now fails
229-
bool success = thread_pool.Post([&finished_tasks, delay]()
230+
bool const success = thread_pool.Post([&finished_tasks, delay]()
230231
{
231232
std::this_thread::sleep_for(delay);
232233
finished_tasks++;

0 commit comments

Comments
 (0)