MCPcopy Create free account
hub / github.com/bcndev/bytecoin / EventLoop

Method EventLoop

src/platform/Network.cpp:518–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516thread_local EventLoop *EventLoop::current_loop = nullptr;
517
518EventLoop::EventLoop(boost::asio::io_service &io_service) : io_service(io_service) {
519 if (current_loop)
520 throw std::logic_error("RunLoop::RunLoop Only single RunLoop per thread is allowed");
521 current_loop = this;
522}
523
524EventLoop::~EventLoop() { current_loop = nullptr; }
525

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected