Thread 고치기
This commit is contained in:
@@ -7,7 +7,7 @@ ThreadPool::ThreadPool(std::uint32_t numThreads) {
|
||||
workers_.reserve(numThreads);
|
||||
|
||||
while (numThreads--)
|
||||
workers_.push_back([this]() -> void* { return this->Worker(); });
|
||||
workers_.push_back([this]() -> int { this->Worker(); return 1; });
|
||||
}
|
||||
|
||||
ThreadPool::~ThreadPool() {
|
||||
@@ -24,7 +24,6 @@ void* ThreadPool::Worker() {
|
||||
#elif __linux__
|
||||
pid_t pid = getpid();
|
||||
#endif
|
||||
spdlog::info("ThreadPool Worker : {}", pid);
|
||||
while (!terminate_) {
|
||||
std::unique_lock<std::mutex> lock(jobQueueMutex);
|
||||
spdlog::info("ThreadPool Worker : {} Waiting for a job", pid);
|
||||
|
||||
Reference in New Issue
Block a user