Timer and a while loop - does the timer interrupt execution #153
Unanswered
thekioskman
asked this question in
[Project Q&A] 2. Transport Layer (TCP)
Replies: 1 comment 3 replies
-
KENS follows single-threaded event-driven model, so you should avoid busy-waiting ( Rather than busy-waiting, the original function must return, and later the remaining tasks should be handled in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I read in an older post that the timer will not work if you call the timer and then enter a conditional while loop that could not end. For example the below code:
#78
I'm wondering if there is a specific reason that the timer callback cannot interrupt the while loop. Also if this style of timeout doesn't work, I'm not sure how we would implement a packet time out. Is there any hint you could give in that case?
Beta Was this translation helpful? Give feedback.
All reactions