Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
Signed-off-by: jinjiabao.jjb <[email protected]>
  • Loading branch information
jinjiabao.jjb committed Jan 15, 2025
1 parent 547947b commit bfc0d4d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/safe_thread_pool_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include "safe_thread_pool.h"

#include <catch2/catch_test_macros.hpp>
#include <chrono>
#include <thread>

TEST_CASE("test safe thread pool", "[ut][thread_pool]") {
auto thread_pool = vsag::SafeThreadPool::FactoryDefaultThreadPool();
Expand All @@ -30,7 +28,6 @@ TEST_CASE("test safe thread pool", "[ut][thread_pool]") {
for (int i = 0; i < round; ++i) {
results.emplace_back(thread_pool->GeneralEnqueue(
[&data, &m](int i) -> int {
std::this_thread::sleep_for(std::chrono::seconds(1));
std::lock_guard lock(m);
vsag::logger::info("current data:{}", data);
data++;
Expand Down

0 comments on commit bfc0d4d

Please sign in to comment.