Sign in to follow this  
Aiea

wxWidgets - Yield()

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this