libstdc++: Update copyright dates on new files
The patch adding these files was approved in 2020 but it wasn't committed until 2021, so the copyright years were not updated along with the years in all the existing files. libstdc++-v3/ChangeLog: * include/std/barrier: Update copyright years. Fix whitespace. * include/std/version: Fix whitespace. * testsuite/30_threads/barrier/1.cc: Update copyright years. * testsuite/30_threads/barrier/2.cc: Likewise. * testsuite/30_threads/barrier/arrive.cc: Likewise. * testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise. * testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise. * testsuite/30_threads/barrier/completion.cc: Likewise.
This commit is contained in:
parent
d61d2a5f3c
commit
194a9d67be
8 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
// <barrier> -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
@ -103,7 +103,7 @@ It looks different from literature pseudocode for two main reasons:
|
|||
static_cast<__barrier_phase_t>(__old_phase_val + 2);
|
||||
|
||||
size_t __current_expected = _M_expected;
|
||||
std::hash<std::thread::id>__hasher;
|
||||
std::hash<std::thread::id> __hasher;
|
||||
size_t __current = __hasher(std::this_thread::get_id())
|
||||
% ((_M_expected + 1) >> 1);
|
||||
|
||||
|
|
|
@ -200,8 +200,8 @@
|
|||
#if defined _GLIBCXX_HAS_GTHREADS || defined _GLIBCXX_HAVE_LINUX_FUTEX
|
||||
# define __cpp_lib_atomic_wait 201907L
|
||||
# if __cpp_aligned_new
|
||||
# define __cpp_lib_barrier 201907L
|
||||
#endif
|
||||
# define __cpp_lib_barrier 201907L
|
||||
# endif
|
||||
#endif
|
||||
#define __cpp_lib_bind_front 201907L
|
||||
#if __has_builtin(__builtin_bit_cast)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// { dg-require-gthreads "" }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
|
||||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// { dg-require-gthreads "" }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
|
||||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// { dg-require-gthreads "" }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
|
||||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// { dg-require-gthreads "" }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
|
||||
// Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU ISO C++ Library. This library is free
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
|
|
Loading…
Add table
Reference in a new issue