Your Digital Media Has Never Looked So Good

 
abhishek
Topic Author
Posts: 36
Joined: Thu Mar 03, 2016 10:49 pm

roRegistrySection in main thread of Scene Graph Application

Mon Jan 29, 2018 11:38 pm

As per the documentation we need to use roRegisterySection with the task node, but I have some values in the main thread what I would like to store in persistent storage. 

Is it safe to do that?

If I am using the roRegistrySection in the main thread then I don't need to use the task node, which I would like to avoid as well. 

@Roku team, please confirm this as it has nowhere mentioned in the documentation.
 
User avatar
squirreltown
Posts: 864
Joined: Sun Apr 21, 2013 2:20 pm

Re: roRegistrySection in main thread of Scene Graph Application

Tue Jan 30, 2018 8:07 am

I do it without any problems. Main() writes some registry parameters before SceneGraph starts.
Kinetics Screensavers
 
User avatar
RokuJoel
Posts: 1758
Joined: Mon Nov 14, 2011 5:22 pm

Re: roRegistrySection in main thread of Scene Graph Application

Tue Jan 30, 2018 6:18 pm

No reason why you can't use the main thread to write to the Registry. I would be careful that you aren't writing to the exact same keys in a thread that are being written to in the main thread or another thread, simultaneously. 

 - Joel 

Who is online

Users browsing this forum: No registered users and 3 guests