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

fix: use TDatabasePDG as a singleton #416

Closed
wants to merge 1 commit into from
Closed

Conversation

c-dilks
Copy link
Member

@c-dilks c-dilks commented Dec 29, 2022

Briefly, what does this PR introduce?

TDatabasePDG should be instantiated with its Instance() method, otherwise it will print a warning if you try to instantiate it twice with, e.g., std::make_shared.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

no

Does this PR change default behavior?

no

@wdconinc
Copy link
Contributor

root-project/root#11580 Even with the singleton it may need a mutex. It probably should be a service to manage that.

@c-dilks
Copy link
Member Author

c-dilks commented Dec 29, 2022

Oh no! Opened an issue so we can discuss how to proceed: #417

@DraTeots
Copy link
Contributor

I guess this one should be closed in favor of a centralized service?

@c-dilks c-dilks closed this Jan 15, 2023
@c-dilks c-dilks deleted the pdg-db-singleton branch January 15, 2023 04:49
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.

None yet

3 participants