Skip to content

Fix singleton destruction order <master> [10533]#1748

Merged
MiguelCompany merged 5 commits intomasterfrom
bugfix/singleton_destruction
Feb 11, 2021
Merged

Fix singleton destruction order <master> [10533]#1748
MiguelCompany merged 5 commits intomasterfrom
bugfix/singleton_destruction

Conversation

@IkerLuengo
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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>
@IkerLuengo IkerLuengo force-pushed the bugfix/singleton_destruction branch from b9d6750 to b8bd004 Compare February 10, 2021 07:40
@richiprosima
Copy link
Copy Markdown
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