Defer not working in multithreaded app #1801
Answered
by
FabianHummel
FabianHummel
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
FabianHummel
Nov 1, 2024
Replies: 1 comment 2 replies
-
You need to get the Loop from the thread you want to "defer" to. Right now you're getting the loop from the current thread and deferring from that thread, to that thread. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed it because I had been experiencing issues with c++ translation units (splitting code into header files) and using the wrong keywords. My issue has nothing to do with uWebSockets. Sorry for confusion, closing now.