스레드 재수정

This commit is contained in:
2025-04-30 16:21:51 +09:00
parent 36725fd8f2
commit b662823726
5 changed files with 29 additions and 8 deletions

View File

@@ -29,6 +29,8 @@ public:
auto task = std::packaged_task<void()>(std::move(boundFunc));
jobs_.push(std::move(task));
jobQueueCV_.notify_one();
return 0;
}
template<typename _Callable, typename... _Args>
requires std::is_void_v<std::invoke_result_t<_Callable, _Args...>>