| 516 | thread_local EventLoop *EventLoop::current_loop = nullptr; |
| 517 | |
| 518 | EventLoop::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 | |
| 524 | EventLoop::~EventLoop() { current_loop = nullptr; } |
| 525 |
nothing calls this directly
no outgoing calls
no test coverage detected