uWS::Loop::defer() not firing. #1596
Answered
by
uNetworkingAB
jacobsologub
asked this question in
Q&A
-
I've got a separate thread firing at about 1 seconds interval(s).
Loop::deferQueues just keeps building up. I'm on 8410f7e |
Beta Was this translation helpful? Give feedback.
Answered by
uNetworkingAB
Apr 5, 2023
Replies: 2 comments
-
You are getting a new loop for the queueing thread. You need to grab the loop of the target thread. Loop::get() is thread local |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
uNetworkingAB
-
@uNetworkingAB Yeah just sorted that out. Thanks. |
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
You are getting a new loop for the queueing thread. You need to grab the loop of the target thread. Loop::get() is thread local