mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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:
parent
65ff0ba1b1
commit
4d344c888e
1 changed files with 4 additions and 1 deletions
|
@ -45,8 +45,11 @@ struct SwTask : Task
|
||||||
bool pushed = false; //Pushed into task list?
|
bool pushed = false; //Pushed into task list?
|
||||||
bool disposed = false; //Disposed task?
|
bool disposed = false; //Disposed task?
|
||||||
|
|
||||||
RenderRegion bounds() const
|
RenderRegion bounds()
|
||||||
{
|
{
|
||||||
|
//Can we skip the synchronization?
|
||||||
|
done();
|
||||||
|
|
||||||
RenderRegion region;
|
RenderRegion region;
|
||||||
|
|
||||||
//Range over?
|
//Range over?
|
||||||
|
|
Loading…
Add table
Reference in a new issue