mitsuba-renderer / mitsuba3

Mitsuba 3: A Retargetable Forward and Inverse Renderer
https://www.mitsuba-renderer.org/
Other
2.1k stars 246 forks source link

Ensure external threads always get a Logger and FileResolver #1294

Closed dvicini closed 2 months ago

dvicini commented 2 months ago

This PR ensures that any external thread that is registered with Mitsuba will have a valid logger and file resolver.

The Logger is re-used from the main thread, since it is thread safe. The file resolver is copied, as it is not thread safe, but light weight to copy.

This PR also adds two tests that exercise this newly added / fixed functionality.