Use std::mt19937, std::thread and std::atomic to simplify tests
authorJonathan Wakely <jwakely@redhat.com>
Mon, 25 Jul 2016 10:31:53 +0000 (11:31 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 25 Jul 2016 10:31:53 +0000 (11:31 +0100)
commit19bb30c065848fab2edc67f56990704e42345b2b
tree181a5132656bb9ba24bd0a82b0fb029470d23591
parente9e4348d68fd2a013f8b4c74b10ce8a3e551138d
Use std::mt19937, std::thread and std::atomic to simplify tests

* testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Use
std::mt19937, std::thread and std::atomic to simplify test.
* testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.

From-SVN: r238703
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc
libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc