Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joetesta
Roku Guru

Thread Rendezvous Examples ?

Because of serious issues with our in-development application ( https://forums.roku.com/viewtopic.php?f=34&t=94201 ), I'm looking to move data and elements off the "Global Node" with the hope this will allow our app to behave in an acceptable manner.

I read that the way for threads to communicate / pass data to one another is the use of "thread rendezvous" https://sdkdocs.roku.com/display/sdkdoc ... ph+Threads and I think this is what our app needs, however I'm challenged trying to figure out how to implement this. Are there any working examples, or is it something that could possibly be explained here?

"the invoking thread makes a request of the owning thread" - HOW? Is there an example or instruction as to how to make a request from one thread to another?

tyvmia
Joe
aspiring
0 Kudos
4 REPLIES 4
EnTerr
Roku Guru

Re: Thread Rendezvous Examples ?

It's just about set/get field, see https://forums.roku.com/viewtopic.php?f ... 15#p537039
Accessing a field slot rendezvous you (occasionally, with Godot)
0 Kudos
joetesta
Roku Guru

Re: Thread Rendezvous Examples ?

Thank you very much EnTerr, for your replies.
Sounds like you think we'll ultimately be able to use Global node (noid?) for holding EPG data without the memory issues after pressing 'Home'.
Based on what TheEndless wrote on the other thread, about global references to video player, https://forums.roku.com/viewtopic.php?f ... e0#p536880 I'm wondering how to un-globalize videoplayer but still reference it from various threads.
aspiring
0 Kudos
TheEndless
Channel Surfer

Re: Thread Rendezvous Examples ?

"joetesta" wrote:
Thank you very much EnTerr, for your replies.
Sounds like you think we'll ultimately be able to use Global node (noid?) for holding EPG data without the memory issues after pressing 'Home'.
Based on what TheEndless wrote on the other thread, about global references to video player, https://forums.roku.com/viewtopic.php?f ... e0#p536880 I'm wondering how to un-globalize videoplayer but still reference it from various threads.

The way I ultimately did it was to set a field on the scene, then any component in that scene can get a reference to it by walking up the .getParent() tree.
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)
0 Kudos
joetesta
Roku Guru

Re: Thread Rendezvous Examples ?

Thank you, TheEndless. I appreciate your help!
Today I tried this, removing any global reference to the video Component. At the end I saw the same problem - after pressing 'Home' button the audio continues indefinitely on the Roku home screen. I guess there is some other cause (loading a lot of data on the global node?), or else I missed something...
aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.