MCPcopy Create free account
hub / github.com/IronsDu/brynet / exceptInLoopThread

Method exceptInLoopThread

include/brynet/net/EventLoop.hpp:330–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329private:
330 void exceptInLoopThread() const
331 {
332#ifndef NDEBUG
333 assert(isInLoopThread());
334#endif
335 if (!isInLoopThread())
336 {
337 std::stringstream ss;
338 ss << "this call stack not in io thread"
339 << ", current thread id:" << current_thread::tid()
340 << ", but event loop self thread id:" << mSelfThreadID;
341 throw BrynetCommonException(ss.str());
342 }
343 }
344
345 void reAllocEventSize(size_t size)
346 {

Callers

nothing calls this directly

Calls 2

strMethod · 0.80

Tested by

no test coverage detected