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 singleton destruction order <master> [10533] #1748

Merged
merged 5 commits into from
Feb 11, 2021

Conversation

IkerLuengo
Copy link
Contributor

These singletons are used on the destruction of certain classes.
In order to avoid these singletons to be already destructed,
these classes keep a shared_pointer to an instance to the singleton.
This ensures that the singleton is destructed AFTER the class instance.

These singletons are used on the destruction of certain classes.
In order to avoid these singletons to be already destructed,
these classes keep a shared_pointer to an instance to the singleton.
This ensures that the singleton is destructed AFTER the class instance.

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
@IkerLuengo IkerLuengo changed the title Fix singleton destructin order <2.2.x> [10533] Fix singleton destruction order <2.2.x> [10533] Feb 9, 2021
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
@IkerLuengo IkerLuengo changed the base branch from 2.2.x to master February 9, 2021 12:15
@IkerLuengo IkerLuengo changed the title Fix singleton destruction order <2.2.x> [10533] Fix singleton destruction order <master> [10533] Feb 9, 2021
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
@richiware
Copy link
Member

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
@richiprosima
Copy link
Contributor

Build status:

  • Linux Build Status
  • Linux aarch64Build Status
  • Mac Build Status
  • Windows Build Status

@MiguelCompany MiguelCompany merged commit a00c80b into master Feb 11, 2021
@MiguelCompany MiguelCompany deleted the bugfix/singleton_destruction branch February 11, 2021 10:31
IkerLuengo added a commit that referenced this pull request Feb 12, 2021
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
IkerLuengo added a commit that referenced this pull request Feb 12, 2021
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
IkerLuengo added a commit that referenced this pull request Feb 12, 2021
Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Feb 13, 2021
* Fix singleton destruction order (port of #1748)

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>

* uncrustify

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
MiguelCompany pushed a commit that referenced this pull request Feb 19, 2021
* Fix singleton destruction order (port of #1748)

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>

* Add adapted tests (port of #1748)

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>

* uncrustify

Signed-off-by: Iker Luengo <ikerluengo@eprosima.com>
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.

4 participants