diff --git a/llarp/mem.hpp b/llarp/mem.hpp index 07bbb0c9d..08e19df19 100644 --- a/llarp/mem.hpp +++ b/llarp/mem.hpp @@ -7,8 +7,7 @@ template static constexpr size_t alignment() { size_t idx = 0; size_t sz = sizeof(T); - while(sz) - { + while (sz) { ++idx; sz >>= 1; } diff --git a/llarp/threadpool.cpp b/llarp/threadpool.cpp index 33e82d11d..3d3149e5e 100644 --- a/llarp/threadpool.cpp +++ b/llarp/threadpool.cpp @@ -39,7 +39,7 @@ void Pool::Join() { for (auto &t : threads) t.join(); } -void Pool::QueueJob(const llarp_thread_job & job) { +void Pool::QueueJob(const llarp_thread_job &job) { { lock_t lock(queue_mutex); diff --git a/llarp/threadpool.hpp b/llarp/threadpool.hpp index c4a22c0f6..00f8d1be6 100644 --- a/llarp/threadpool.hpp +++ b/llarp/threadpool.hpp @@ -4,8 +4,8 @@ #include #include -#include #include +#include #include #include @@ -15,7 +15,7 @@ typedef std::mutex mtx_t; typedef std::unique_lock lock_t; struct Pool { Pool(size_t sz); - void QueueJob(const llarp_thread_job & job); + void QueueJob(const llarp_thread_job& job); void Join(); std::vector threads; std::deque jobs;