• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bemanproject / timed_lock_alg / 27275299565
100%

Build:
DEFAULT BRANCH: main
Ran 10 Jun 2026 12:15PM UTC
Jobs 1
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Jun 2026 12:10PM UTC coverage: 100.0%. Remained the same
27275299565

push

github

TedLyngmo
Adjust the try_lock_until algorithm to match the wording in P3832R2

Since a timed lockable's try_lock_until will not return failure in case
the time given has already expired, but instead return this->try_lock(),
there was a theoretical possibility of never getting out of the loop.

It was essentially possible to get into this situation:
  m1.try_lock_until(expired_tp); // succeeds
  m2.try_lock();                 // fails
  m2.try_lock_until(expired_tp); // succeeds
  m1.try_lock();                 // fails
  // back to the original situation and it could keep going

The remedy was to add wording about "the above steps are repeated until
the time point abs_time has been reached" which made it necessary to do
a Clock::now() call before trying a new sequence (sorry Bosse).

Signed-off-by: Ted Lyngmo <ted@lyncon.se>

2 of 2 new or added lines in 1 file covered. (100.0%)

100 of 100 relevant lines covered (100.0%)

13.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27275299565.1 10 Jun 2026 12:15PM UTC 1
100.0
GitHub Action Run
Source Files on build 27275299565
  • Tree
  • List 1
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27275299565
  • e450dfec on github
  • Prev Build on main (#27272694482)
  • Next Build on main (#27509803055)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc