Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
abhishek
Level 7

roRegistrySection in main thread of Scene Graph Application

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.
0 Kudos
2 Replies
squirreltown
Level 8

Re: roRegistrySection in main thread of Scene Graph Application

I do it without any problems. Main() writes some registry parameters before SceneGraph starts.
Kinetics Screensavers
0 Kudos
Roku Employee
Roku Employee

Re: roRegistrySection in main thread of Scene Graph Application

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 
0 Kudos