MCPcopy Create free account
hub / github.com/chenshuo/muduo / assertInLoopThread

Method assertInLoopThread

muduo/net/EventLoop.h:109–115  ·  view source on GitHub ↗

pid_t threadId() const { return threadId_; }

Source from the content-addressed store, hash-verified

107
108 // pid_t threadId() const { return threadId_; }
109 void assertInLoopThread()
110 {
111 if (!isInLoopThread())
112 {
113 abortNotInLoopThread();
114 }
115 }
116 bool isInLoopThread() const { return threadId_ == CurrentThread::tid(); }
117 // bool callingPendingFunctors() const { return callingPendingFunctors_; }
118 bool eventHandling() const { return eventHandling_; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected