Changeset View
Changeset View
Standalone View
Standalone View
src/job/cprjobhandler.cpp
| Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | struct CprJobHandler::Private | ||||
| struct WriteCallback : public std::function<bool(std::string)> | struct WriteCallback : public std::function<bool(std::string)> | ||||
| { | { | ||||
| using FuncT = std::function<bool(std::string)>; | using FuncT = std::function<bool(std::string)>; | ||||
| using FuncT::FuncT; | using FuncT::FuncT; | ||||
| using FuncT::operator(); | using FuncT::operator(); | ||||
| bool operator()(std::string buffer, intptr_t) const | bool operator()(std::string_view buffer, intptr_t) const | ||||
| { | { | ||||
| return (*this)(std::move(buffer)); | return (*this)(std::string(buffer)); | ||||
| } | } | ||||
| }; | }; | ||||
| }; | }; | ||||
| CprJobHandler::CprJobHandler(boost::asio::io_context::executor_type executor) | CprJobHandler::CprJobHandler(boost::asio::io_context::executor_type executor) | ||||
| : m_d(new Private{this, std::move(executor), Private::TimerMap{}, Private::JobMap{}}) | : m_d(new Private{this, std::move(executor), Private::TimerMap{}, Private::JobMap{}}) | ||||
| { | { | ||||
| setInterval( | setInterval( | ||||
| ▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines | |||||