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

WaitSet, Condition and GuardCondition implementation [11608, 11609] #1991

Merged
merged 15 commits into from
May 31, 2021

Conversation

MiguelCompany
Copy link
Member

No description provided.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany changed the title WaitSet, Condition and GuardCondition implementation WaitSet, Condition and GuardCondition implementation [11608, 11609] May 28, 2021
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

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

Changes look good. However there are 3 tests that are failing so either the test is not working or the implementation lacks something.

  • ConditionTests.waitset_wait
  • ConditionTests.guard_condition_methods
  • WaitSetImplTests.wait (child aborted)

The first two tests fail in Ubuntu and the third in all platforms (Ubuntu, Windows and Mac)

Comment on lines 26 to 27
#include <fastrtps/fastrtps_dll.h>
#include <fastdds/dds/log/Log.hpp>
Copy link
Contributor

Choose a reason for hiding this comment

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

This headers should be sorted alphabetically.

MiguelCompany and others added 5 commits May 28, 2021 12:11
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
@MiguelCompany MiguelCompany force-pushed the feature/waitsets/basic branch from 9da2c41 to f20b8a6 Compare May 29, 2021 06:34
Copy link
Contributor

@JLBuenoLopez JLBuenoLopez left a comment

Choose a reason for hiding this comment

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

LGTM and the tests are now passing

@MiguelCompany MiguelCompany merged this pull request into feature/waitsets/impl May 31, 2021
@MiguelCompany MiguelCompany deleted the feature/waitsets/basic branch May 31, 2021 05:43
MiguelCompany added a commit that referenced this pull request Jun 4, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Jun 16, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Jun 24, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Jul 5, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Jul 9, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Aug 5, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Aug 30, 2021
* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
MiguelCompany added a commit that referenced this pull request Aug 31, 2021
* WaitSet detail classes (#1989)

* Refs 11608. Required changes on Condition API.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier with empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl with empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added unordered_vector.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Condition management on WaitSetImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Implenting wait and wake_up on WaitSetImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Solving link issues.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Doxygen improvements.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Check vector size on test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* WaitSet, Condition and GuardCondition implementation (#1991)

* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* StatusCondition unit tests (#2026)

* Refs 11823. Added StatusConditionImpl header.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusConditionImpl empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added unit test infrastructure.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusConditionImplTests tests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Entity returns non-const StatusCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusCondition::get_impl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added basic test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added trigger test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Fixed warnings.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Using StrictMock.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Improved doxydoc.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* StatusCondition implementation (#2029)

* Refs 11824. Added attributes to StatusConditionImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Compositing StatusConditionImpl inside StatusCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Fixed link issues.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Adding implementation to StatusConditionImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Fixed Entity::get_statuscondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Added StatusCondition::get_trigger_value.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Changed EntityTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Notify status changes (#2030)

* Refs 11835. Fixed listener calls for deadline statuses.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Basic notifications on DataWriterImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Basic notifications on DataReaderImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implementing DataReader::get_subscription_matched_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Fixed unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implementing DataWriter::get_publication_matched_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Fixed unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implement Entity::get_status_changes through StatusConditionImpl::get_raw_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Added StatusConditionImpl::get_raw_status to unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Status condition blackbox (#2052)

* Refs 11834. Linux compilation errors with gmock 1.10

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

* Refs 11834. pubsub reader/writer with waitsets instead of listeners

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

* Refs 11834. Waitset blackbox

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

* Refs 11834. Uncrustify

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

* Refs 11834. Methods to check timeouts in waitsets

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

* Refs 11834. Check that when no data is received, the waitset times out

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

* Refs 11834. signed-unsigned comparison

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

* Refs 11834. Suggested changes

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

* Fix after rebase

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

Co-authored-by: IkerLuengo <57146230+IkerLuengo@users.noreply.github.com>
SamuelWHalodi pushed a commit to SamuelWHalodi/Fast-DDS that referenced this pull request Oct 4, 2021
* WaitSet detail classes (eProsima#1989)

* Refs 11608. Required changes on Condition API.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier with empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl with empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added unordered_vector.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. ConditionNotifier implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Condition management on WaitSetImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Implenting wait and wake_up on WaitSetImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Solving link issues.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Doxygen improvements.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11656. Check vector size on test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* WaitSet, Condition and GuardCondition implementation (eProsima#1991)

* Refs 11608. Add ConditionNotifier to condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl attaches to notifier on attach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. WaitSetImpl detaches from notifier on detach_condition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adding expectations to WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Waiting on an empty WaitSet should timeout.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Add WaitSetImpl to WaitSet.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Adapting ConditionTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Added GuardCondition implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608.Unregister conditions on WaitSetImpl destruction.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Fixing WaitSetImplTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Explicit memory order on GuardCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Includes alpha-sort.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11608. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11609. Explicitly setting GuardCondition initial value.

Signed-off-by: Miguel Company <miguelcompany@eprosima.com>

* StatusCondition unit tests (eProsima#2026)

* Refs 11823. Added StatusConditionImpl header.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusConditionImpl empty implementation.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added unit test infrastructure.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusConditionImplTests tests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Entity returns non-const StatusCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added StatusCondition::get_impl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added basic test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Added trigger test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Fixed warnings.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Using StrictMock.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11823. Improved doxydoc.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* StatusCondition implementation (eProsima#2029)

* Refs 11824. Added attributes to StatusConditionImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Compositing StatusConditionImpl inside StatusCondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Fixed link issues.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Adding implementation to StatusConditionImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Fixed Entity::get_statuscondition.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Added StatusCondition::get_trigger_value.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Linters.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11824. Changed EntityTests.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Notify status changes (eProsima#2030)

* Refs 11835. Fixed listener calls for deadline statuses.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Basic notifications on DataWriterImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Basic notifications on DataReaderImpl.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implementing DataReader::get_subscription_matched_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Fixed unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implementing DataWriter::get_publication_matched_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Fixed unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Implement Entity::get_status_changes through StatusConditionImpl::get_raw_status.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Refs 11835. Added StatusConditionImpl::get_raw_status to unit test.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

* Status condition blackbox (eProsima#2052)

* Refs 11834. Linux compilation errors with gmock 1.10

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

* Refs 11834. pubsub reader/writer with waitsets instead of listeners

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

* Refs 11834. Waitset blackbox

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

* Refs 11834. Uncrustify

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

* Refs 11834. Methods to check timeouts in waitsets

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

* Refs 11834. Check that when no data is received, the waitset times out

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

* Refs 11834. signed-unsigned comparison

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

* Refs 11834. Suggested changes

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

* Fix after rebase

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>

Co-authored-by: IkerLuengo <57146230+IkerLuengo@users.noreply.github.com>
Signed-off-by: Samuel Wilhelmsson <samuel@halodi.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.

2 participants