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.

I do it without any problems. Main() writes some registry parameters before SceneGraph starts.

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