sw_engine: resolve a thread sanitizer report.

Synchronize before accessing the shared bbox.

Issue: https://github.com/thorvg/thorvg/issues/1874
This commit is contained in:
Hermet Park 2023-12-29 11:24:20 +09:00 committed by Hermet Park
parent 83042aa0a2
commit ea4662a927

View file

@ -45,8 +45,11 @@ struct SwTask : Task
bool pushed = false; //Pushed into task list?
bool disposed = false; //Disposed task?
RenderRegion bounds() const
RenderRegion bounds()
{
//Can we skip the synchronization?
done();
RenderRegion region;
//Range over?