Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

tests: fix parallel_exec_with sync implementation#898

Merged
szyrom merged 1 commit intopmem:stable-1.9from
igchor:spurious_wakepup_fix_1.9
Sep 29, 2020
Merged

tests: fix parallel_exec_with sync implementation#898
szyrom merged 1 commit intopmem:stable-1.9from
igchor:spurious_wakepup_fix_1.9

Conversation

@igchor
Copy link
Copy Markdown
Contributor

@igchor igchor commented Sep 28, 2020

Since std::condition_variable::wait can wakeup spuriosly we need to
pass a predicate to wait. Without this fix, enumerable_thread_specific tests can fail randomly since some of them require a specific number of threads to be active.


This change is Reviewable

Since std::condition_variable::wait can wakeup spuriosly we need to
pass a predicate to wait.
@igchor igchor force-pushed the spurious_wakepup_fix_1.9 branch from 40cb14a to e21c502 Compare September 28, 2020 14:12
Copy link
Copy Markdown
Member

@lukaszstolarczuk lukaszstolarczuk left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 28, 2020

Codecov Report

Merging #898 into stable-1.9 will decrease coverage by 20.39%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           stable-1.9     #898       +/-   ##
===============================================
- Coverage       92.19%   71.79%   -20.40%     
===============================================
  Files              40       39        -1     
  Lines            3792     1826     -1966     
===============================================
- Hits             3496     1311     -2185     
- Misses            296      515      +219     
Flag Coverage Δ
#tests_clang_debug_cpp17 71.79% <ø> (-0.22%) ⬇️
#tests_gcc_debug ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...pmemobj++/container/detail/contiguous_iterator.hpp 0.00% <0.00%> (-100.00%) ⬇️
include/libpmemobj++/container/vector.hpp 0.00% <0.00%> (-87.91%) ⬇️
include/libpmemobj++/defrag.hpp 0.00% <0.00%> (-72.73%) ⬇️
include/libpmemobj++/condition_variable.hpp 0.00% <0.00%> (-67.40%) ⬇️
include/libpmemobj++/pext.hpp 33.33% <0.00%> (-66.67%) ⬇️
include/libpmemobj++/timed_mutex.hpp 0.00% <0.00%> (-54.84%) ⬇️
include/libpmemobj++/persistent_ptr_base.hpp 53.33% <0.00%> (-46.67%) ⬇️
include/libpmemobj++/detail/common.hpp 48.00% <0.00%> (-39.88%) ⬇️
include/libpmemobj++/transaction.hpp 50.00% <0.00%> (-34.62%) ⬇️
include/libpmemobj++/pexceptions.hpp 0.00% <0.00%> (-33.34%) ⬇️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d346272...e21c502. Read the comment docs.

@szyrom szyrom merged commit db5da1b into pmem:stable-1.9 Sep 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants