MCPcopy Create free account
hub / github.com/Icinga/icinga2 / StartCpuBoundWork

Method StartCpuBoundWork

lib/remote/httpmessage.hpp:294–297  ·  view source on GitHub ↗

* Acquire a CpuBoundWork slot * * It is automatically released the next time data is written using Flush() (when doing IO, it's no longer * CPU-bound), or when the object is destroyed. * * @param yc Yield context that is used for waiting. * @param strand Strand the caller is running on, used for synchronization. */

Source from the content-addressed store, hash-verified

292 * @param strand Strand the caller is running on, used for synchronization.
293 */
294 void StartCpuBoundWork(boost::asio::yield_context yc, boost::asio::io_context::strand& strand)
295 {
296 m_CpuBoundWork.emplace(yc, strand);
297 }
298
299private:
300 Serializer m_Serializer{*this};

Callers 1

ProcessRequestFunction · 0.80

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected