diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-11-13 10:04:33 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-11-13 11:01:24 +0000 |
commit | 8c4e33d2032ab150748ea2fe1df2b1c00652a338 (patch) | |
tree | 85eb37e427e50f2c729db2a920a869dd82f39d4b /gcc | |
parent | 54bbde550ec557e48a67ca1f4036e46710bcfeda (diff) | |
download | gcc-8c4e33d2032ab150748ea2fe1df2b1c00652a338.zip gcc-8c4e33d2032ab150748ea2fe1df2b1c00652a338.tar.gz gcc-8c4e33d2032ab150748ea2fe1df2b1c00652a338.tar.bz2 |
libstdc++: Add -pthread options to std::future polling test
For linux targets this test doesn't need -lpthread because it only uses
atomics, but for all other targets std::call_once still needs pthreads.
Add the necessary test directives to make that work.
The timings in this test might be too fragile or too target-specific, so
it might need to be adjusted in future, or restricted to only run on
specific targets. For now I've increased the allowed ratio between
wait_for calls before and after the future is made ready, because it was
failing with -O3 -march=native sometimes.
libstdc++-v3/ChangeLog:
* testsuite/30_threads/future/members/poll.cc: Require gthreads
and add -pthread for targets that require it. Relax required
ratio of wait_for calls before/after the future is ready.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions