stevelaw18
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2012
10:45 AM
Break out of Event Loop
If I have an event loop, that is currently blocked in a wait() call, is there any way for the application to essentially post a message, and break it out of the wait condition?
I noticed in some old documentation that the ifMessagePort interface had a PostMessage() method, but it doesn't look like that exists anymore.
I noticed in some old documentation that the ifMessagePort interface had a PostMessage() method, but it doesn't look like that exists anymore.
1 REPLY 1

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2012
11:04 AM
Re: Break out of Event Loop
I think your best bet is to set a non-zero wait time, and check for exit conditions in the "invalid" events.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)