We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7086d69 commit 298f847Copy full SHA for 298f847
platform/SharedPtr.h
@@ -175,8 +175,9 @@ class SharedPtr {
175
{
176
if (_ptr != NULL) {
177
core_util_critical_section_enter();
178
- return *_counter;
+ uint32_t current_counter = *_counter;
179
core_util_critical_section_exit();
180
+ return current_counter;
181
} else {
182
return 0;
183
}
0 commit comments