mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -23,7 +23,8 @@ UNIT_TEST(ThreadPoolComputational_SomeThreads)
|
||||
base::ComputationalThreadPool threadPool(threadCount);
|
||||
for (size_t i = 0; i < threadCount; ++i)
|
||||
{
|
||||
threadPool.Submit([&]() {
|
||||
threadPool.Submit([&]()
|
||||
{
|
||||
threads::Sleep(1);
|
||||
++counter;
|
||||
});
|
||||
@@ -44,7 +45,8 @@ UNIT_TEST(ThreadPoolComputational_OneThread)
|
||||
base::ComputationalThreadPool threadPool(threadCount);
|
||||
for (size_t i = 0; i < threadCount; ++i)
|
||||
{
|
||||
threadPool.Submit([&]() {
|
||||
threadPool.Submit([&]()
|
||||
{
|
||||
threads::Sleep(1);
|
||||
++counter;
|
||||
});
|
||||
@@ -67,7 +69,8 @@ UNIT_TEST(ThreadPoolComputational_ManyThread)
|
||||
base::ComputationalThreadPool threadPool(threadCount);
|
||||
for (size_t i = 0; i < threadCount; ++i)
|
||||
{
|
||||
threadPool.Submit([&]() {
|
||||
threadPool.Submit([&]()
|
||||
{
|
||||
threads::Sleep(1);
|
||||
++counter;
|
||||
});
|
||||
@@ -87,7 +90,8 @@ UNIT_TEST(ThreadPoolComputational_ReturnValue)
|
||||
std::vector<std::future<size_t>> futures;
|
||||
for (size_t i = 0; i < threadCount; ++i)
|
||||
{
|
||||
auto f = threadPool.Submit([=]() {
|
||||
auto f = threadPool.Submit([=]()
|
||||
{
|
||||
threads::Sleep(1);
|
||||
return i;
|
||||
});
|
||||
@@ -110,7 +114,8 @@ UNIT_TEST(ThreadPoolComputational_ManyTasks)
|
||||
base::ComputationalThreadPool threadPool(4);
|
||||
for (size_t i = 0; i < taskCount; ++i)
|
||||
{
|
||||
threadPool.Submit([&]() {
|
||||
threadPool.Submit([&]()
|
||||
{
|
||||
threads::Sleep(1);
|
||||
++counter;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user