Try fix build.

This commit is contained in:
Nikolai Kochetov 2021-01-11 17:01:32 +03:00
parent 45b28a6374
commit ec70d7961b

View File

@ -100,12 +100,13 @@ PollingQueue::TaskData PollingQueue::wait(std::unique_lock<std::mutex> & lock)
if (event.data.ptr == pipe_fd) if (event.data.ptr == pipe_fd)
return {}; return {};
std::uintptr_t key = reinterpret_cast<uintptr_t>(event.data.ptr); void * ptr = event.data.ptr;
std::uintptr_t key = reinterpret_cast<uintptr_t>(ptr);
auto it = tasks.find(key); auto it = tasks.find(key);
if (it == tasks.end()) if (it == tasks.end())
{ {
throw Exception(ErrorCodes::LOGICAL_ERROR, "Task {} ({}) was not found in task queue: {}", throw Exception(ErrorCodes::LOGICAL_ERROR, "Task {} ({}) was not found in task queue: {}",
key, event.data.ptr, dumpTasks(tasks)); key, ptr, dumpTasks(tasks));
} }
auto res = it->second; auto res = it->second;