U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » While loop, sleep
While loop, sleep [message #60253] Thu, 26 October 2023 06:50 Go to previous message
sniffgriff is currently offline  sniffgriff
Messages: 10
Registered: May 2023
Location: NY
Promising Member
Hello!

I am trying to run a while loop function in U++, and I want it to run indefinitely. I trigger the while loop in a button. However, when I use sleep(), the whole program waits/freezes for the duration of sleep. Is there a way to run the loop parallel? Where do I trigger the loop function? Sorry if this is obvious, but I appreciate the input/advice.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Java Script
Next Topic: How do I write string_view to Cout() without copying to a String?
Goto Forum:
  


Current Time: Thu May 21 05:22:27 GMT+2 2026

Total time taken to generate the page: 0.00718 seconds