diff options
author | Frank Barchard <fbarchard@google.com> | 2017-05-23 18:43:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2017-05-24 02:09:03 +0000 |
commit | 651ccc0c3a3f507b8ab0895e4ba018b9a6dedbfa (patch) | |
tree | d304ddd0ad8bb368beb5fb7be9a418e5c351eaa3 /BUILD.gn | |
parent | 77f6916da2ebc16ad441c8dbeb8a73b0d3a150df (diff) | |
download | libyuv-651ccc0c3a3f507b8ab0895e4ba018b9a6dedbfa.tar.gz |
Fix data races in libyuv::TestCpuFlag().
Detect the compiler's support of C11 atomics, and use C11 atomics when
available.
Note that libyuv::MaskCpuFlags() is still not thread-safe.
BUG=libyuv:641
TEST= cpu_thread_test.cc adds a pthread based test
R=wangcheng@google.com
Change-Id: If05b1e16da833105a0159ed67ef20f4e61bc7abd
Reviewed-on: https://chromium-review.googlesource.com/510079
Commit-Queue: Frank Barchard <fbarchard@google.com>
Reviewed-by: Cheng Wang <wangcheng@google.com>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -238,6 +238,7 @@ if (libyuv_include_tests) { "unit_test/compare_test.cc", "unit_test/convert_test.cc", "unit_test/cpu_test.cc", + "unit_test/cpu_thread_test.cc", "unit_test/math_test.cc", "unit_test/planar_test.cc", "unit_test/rotate_argb_test.cc", |