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

Extract some duplicated code for sync triggers and timers #7912

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jul 22, 2024

A trivial bit of refactoring extracted from one of my multiprocess sync branches. I wrote some new timers and found it silly that I had to copy and paste stuff so I extracted the duplicated code. I also made it so that Trigger accepts any callable plus arguments similar to std::thread.

@tgoyne tgoyne self-assigned this Jul 22, 2024
@cla-bot cla-bot bot added the cla: yes label Jul 22, 2024
Copy link

Pull Request Test Coverage Report for Build thomas.goyne_484

Details

  • 62 of 71 (87.32%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on tg/trigger at 91.097%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/realm/sync/client.cpp 4 6 66.67%
src/realm/sync/trigger.hpp 22 25 88.0%
src/realm/sync/noinst/client_impl_base.cpp 18 22 81.82%
Totals Coverage Status
Change from base Build 2543: 91.1%
Covered Lines: 216695
Relevant Lines: 237872

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant