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