1adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//===----------------------------------------------------------------------===//
2adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//
3adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//                     The LLVM Compiler Infrastructure
4adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//
5adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant// This file is dual licensed under the MIT and the University of Illinois Open
6adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant// Source Licenses. See LICENSE.TXT for details.
7adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//
8adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant//===----------------------------------------------------------------------===//
9adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant
10adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant// <mutex>
11adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant
12adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant// class timed_mutex;
13adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant
14adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant// timed_mutex& operator=(const timed_mutex&) = delete;
15adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant
16adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant#include <mutex>
17adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant
18adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnantint main()
19adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant{
20adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant    std::timed_mutex m0;
21adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant    std::timed_mutex m1;
22adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant    m1 = m0;
23adaa6266fedc73dd2112fd074dcb5e12710fceb3Howard Hinnant}
24