connection是否应该进行线程保护? #685
Unanswered
sirius-zyj
asked this question in
Q&A
Replies: 2 comments
-
不用。
|
Beta Was this translation helpful? Give feedback.
0 replies
-
loop_->assertInLoopThread()确保在当前线程是loop创建时所在线程呀,一个loop一个线程不会产生线程安全问题的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
此处一增一减,是否应该进行线程保护,比如加锁?
Beta Was this translation helpful? Give feedback.
All reactions