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

[15174] Add new CMake option to allow users to enforce use of our third party shared_mutex #2846

Merged
merged 8 commits into from
Jul 21, 2022

Conversation

MiguelBarro
Copy link
Contributor

@MiguelBarro MiguelBarro commented Jul 15, 2022

Description

The CMake option USE_THIRDPARTY_SHARED_MUTEX is added as OFF by default.
By turning it on users can enforce the use of our boost-like implementation of shared_mutex.
Otherwise, the third-party implementation will be used only if the build framework lacks a shared_mutex.

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added.
  • NA Any new/modified methods have been properly documented using Doxygen.
  • Fast DDS test suite has been run locally.
  • Changes are ABI compatible.
  • Changes are API compatible.
  • Documentation builds and tests pass locally.
  • New feature has been added to the versions.md file (if applicable).
  • New feature has been documented/Current behavior is correctly described in the documentation.

eProsima/Fast-DDS-docs#384

Reviewer Checklist

  • Check contributor checklist is correct.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

Miguel Barro added 4 commits July 15, 2022 10:21
…ies component. This pull request mandatory piggyback.

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
…mutex use

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
Copy link
Contributor

@jsan-rt jsan-rt left a comment

Choose a reason for hiding this comment

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

Small nitpick

versions.md Outdated Show resolved Hide resolved
MiguelBarro and others added 2 commits July 15, 2022 13:29
Co-authored-by: jsantiago-eProsima <90755661+jsantiago-eProsima@users.noreply.github.com>
… config.h inclusion. Make sure all compilation units in the library use the same shared_mutex implementation.

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@jsan-rt
Copy link
Contributor

jsan-rt commented Jul 15, 2022

@richiprosima please test this

…he config.h is not included. Prevents future issues including shared_mutex.hpp

Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro MiguelBarro force-pushed the feature/force_thirdparty_shared_mutex branch 2 times, most recently from 2315cab to 666f528 Compare July 18, 2022 08:12
Signed-off-by: Miguel Barro <miguelbarro@eprosima.com>
@MiguelBarro MiguelBarro changed the title Add new CMake option to allow users to enforce use of our third party shared_mutex [15174] Add new CMake option to allow users to enforce use of our third party shared_mutex Jul 18, 2022
@MiguelBarro
Copy link
Contributor Author

@richiprosima Please test this

@jsan-rt
Copy link
Contributor

jsan-rt commented Jul 21, 2022

LGTM

@MiguelCompany MiguelCompany merged commit dee1d4b into master Jul 21, 2022
@MiguelCompany MiguelCompany deleted the feature/force_thirdparty_shared_mutex branch July 21, 2022 15:18
Blast545 added a commit to Blast545/Fast-DDS that referenced this pull request Jul 21, 2022
…rd party shared_mutex (eProsima#2846)"

This reverts commit dee1d4b.

Signed-off-by: Jorge Perez <jjperez@ekumenlabs.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.

3 participants