Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Dec 25, 2024

It was syntactically correct, but without an actual variable, there was no RAII scope and so it destructs immediately, causing the timers to capture 0 time.

Found by Sonar warnings.

This was causing those timers to fail because without an actual
variable, there was no RAII scope.

Found by Sonar warnings.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Larry Gritz <[email protected]>
Copy link
Contributor

@jessey-git jessey-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they're all taken care of now.

@lgritz lgritz merged commit 6b11c95 into AcademySoftwareFoundation:main Dec 27, 2024
29 checks passed
@lgritz lgritz deleted the lg-loggedtimer branch December 27, 2024 22:43
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Dec 28, 2024
…reFoundation#4571)

It was syntactically correct, but without an actual variable, there was
no RAII scope and so it destructs immediately, causing the timers to
capture 0 time.

Found by Sonar warnings.

---------

Signed-off-by: Larry Gritz <[email protected]>
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 2025
…reFoundation#4571)

It was syntactically correct, but without an actual variable, there was
no RAII scope and so it destructs immediately, causing the timers to
capture 0 time.

Found by Sonar warnings.

---------

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants