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: 
abhishek
Channel Surfer

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 2
squirreltown
Roku Guru

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
RokuJoel
Binge Watcher

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