Jump to content
  • Advertisement
Sign in to follow this  
Aiea

wxWidgets - Yield()

This topic is 3714 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, I'm writing a program where it gets data from a board through usb. What's happening is that when there are no data in the buffer on the board, my gui halts until there is data available. I've done some research and seems I need to use Yield to make the gui responsive during the data waiting halt. But I can't seem to get Yield() to work and it's hard to find examples on how that is done. Can anyone help me with this problem?? Mahalo, Aiea

Share this post


Link to post
Share on other sites
Advertisement
Are you polling the USB port? wxYield() will help you in that case, but if you're stuck in a blocking read call you need to use a thread so your GUI event loop can still run.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!