Forum Discussion

joetesta's avatar
joetesta
Roku Guru
9 years ago

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

4 Replies

  • 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.
  • TheEndless's avatar
    TheEndless
    Channel Surfer
    "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.
  • 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...