topic Re: Thread Rendezvous Examples ? in Roku Developer Programhttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472832#M38395
<BLOCKQUOTE>"joetesta" wrote:<BR />Thank you very much EnTerr, for your replies.<BR />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'.<BR />Based on what TheEndless wrote on the other thread, about global references to video player, <!-- m --><A class="postlink" href="https://forums.roku.com/viewtopic.php?f=34&amp;t=94201&amp;sid=65583df06ddaa0e5ceb93f553aff82e0#p536880">https://forums.roku.com/viewtopic.php?f ... e0#p536880</A><!-- m --> I'm wondering how to un-globalize videoplayer but still reference it from various threads.</BLOCKQUOTE><BR />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 <A href="https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeChildren#ifSGNodeChildren-getParent()" target="_blank">.getParent()</A> tree.Tue, 09 Aug 2016 15:59:16 GMTTheEndless2016-08-09T15:59:16ZThread Rendezvous Examples ?https://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472829#M38392
Because of serious issues with our in-development application ( <!-- m --><A class="postlink" href="https://forums.roku.com/viewtopic.php?f=34&amp;t=94201">https://forums.roku.com/viewtopic.php?f=34&amp;t=94201</A><!-- m --> ), 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.<BR /><BR />I read that the way for threads to communicate / pass data to one another is the use of "thread rendezvous" <!-- m --><A class="postlink" href="https://sdkdocs.roku.com/display/sdkdoc/Scene+Graph+Threads">https://sdkdocs.roku.com/display/sdkdoc ... ph+Threads</A><!-- m --> 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?<BR /><BR />"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?<BR /><BR />tyvmia<BR />JoeMon, 08 Aug 2016 18:14:17 GMThttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472829#M38392joetesta2016-08-08T18:14:17ZRe: Thread Rendezvous Examples ?https://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472830#M38393
It's just about set/get field, see <!-- m --><A class="postlink" href="https://forums.roku.com/viewtopic.php?f=34&amp;t=94201&amp;start=15#p537039">https://forums.roku.com/viewtopic.php?f ... 15#p537039</A><!-- m --><BR />Accessing a field slot rendezvous you (occasionally, with Godot)Mon, 08 Aug 2016 22:57:28 GMThttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472830#M38393EnTerr2016-08-08T22:57:28ZRe: Thread Rendezvous Examples ?https://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472831#M38394
Thank you very much EnTerr, for your replies.<BR />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'.<BR />Based on what TheEndless wrote on the other thread, about global references to video player, <!-- m --><A class="postlink" href="https://forums.roku.com/viewtopic.php?f=34&amp;t=94201&amp;sid=65583df06ddaa0e5ceb93f553aff82e0#p536880">https://forums.roku.com/viewtopic.php?f ... e0#p536880</A><!-- m --> I'm wondering how to un-globalize videoplayer but still reference it from various threads.Tue, 09 Aug 2016 15:31:27 GMThttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472831#M38394joetesta2016-08-09T15:31:27ZRe: Thread Rendezvous Examples ?https://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472832#M38395
<BLOCKQUOTE>"joetesta" wrote:<BR />Thank you very much EnTerr, for your replies.<BR />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'.<BR />Based on what TheEndless wrote on the other thread, about global references to video player, <!-- m --><A class="postlink" href="https://forums.roku.com/viewtopic.php?f=34&amp;t=94201&amp;sid=65583df06ddaa0e5ceb93f553aff82e0#p536880">https://forums.roku.com/viewtopic.php?f ... e0#p536880</A><!-- m --> I'm wondering how to un-globalize videoplayer but still reference it from various threads.</BLOCKQUOTE><BR />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 <A href="https://sdkdocs.roku.com/display/sdkdoc/ifSGNodeChildren#ifSGNodeChildren-getParent()" target="_blank">.getParent()</A> tree.Tue, 09 Aug 2016 15:59:16 GMThttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472832#M38395TheEndless2016-08-09T15:59:16ZRe: Thread Rendezvous Examples ?https://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472833#M38396
Thank you, TheEndless. I appreciate your help! <BR />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...Tue, 09 Aug 2016 22:04:31 GMThttps://community.roku.com/t5/Roku-Developer-Program/Thread-Rendezvous-Examples/m-p/472833#M38396joetesta2016-08-09T22:04:31Z