MCPcopy Create free account
hub / github.com/Shangyizhou/A-Tiny-Network-Library / isInLoopThread

Method isInLoopThread

src/net/EventLoop.h:51–51  ·  view source on GitHub ↗

判断EventLoop是否在自己的线程

Source from the content-addressed store, hash-verified

49
50 // 判断EventLoop是否在自己的线程
51 bool isInLoopThread() const { return threadId_ == CurrentThread::tid(); }
52
53 /**
54 * 定时任务相关函数

Callers 1

sendMethod · 0.45

Calls 1

tidFunction · 0.50

Tested by

no test coverage detected