Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -63,8 +63,7 @@ public:
auto Submit(F && func, Args &&... args) -> std::future<decltype(func(args...))>
{
using ResultType = decltype(func(args...));
std::packaged_task<ResultType()> task(std::bind(std::forward<F>(func),
std::forward<Args>(args)...));
std::packaged_task<ResultType()> task(std::bind(std::forward<F>(func), std::forward<Args>(args)...));
std::future<ResultType> result(task.get_future());
{
std::unique_lock lock(m_mutex);
@@ -128,9 +127,7 @@ private:
FunctionType task;
{
std::unique_lock lock(m_mutex);
m_condition.wait(lock, [&] {
return m_done || !m_queue.empty();
});
m_condition.wait(lock, [&] { return m_done || !m_queue.empty(); });
if (m_done && m_queue.empty())
return;
@@ -154,4 +151,4 @@ private:
ThreadsJoiner<> m_joiner;
};
} // namespace base
} // namespace base