Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUI] Add AliveCount property to get currently alived View number #5746

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

dongsug-song
Copy link
Contributor

Description of Change

[NUI] Add AliveCount property to get currently living View number

  • add only getter as hidden api
  • consider the two cases of explicitly disposed case by user and implicitly case by GC.

API Changes

none

@@ -403,6 +403,7 @@ protected override void Dispose(bool disposing)
{
// at this case, implicit nor explicit dispose is not required. No native object is made.
disposed = true;
aliveCount--;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wow.. A lots of people will miss this cases! Looks good to me

@dongsug-song dongsug-song merged commit 9441850 into Samsung:DevelNUI Nov 15, 2023
3 checks passed
@dongsug-song dongsug-song deleted the develnui-1114 branch November 15, 2023 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants