cxx/test/thread/thread.mutex/thread.mutex.requirements/thread.mutex.class/native_handle.pass.cpp
2010-05-11 21:36:01 +00:00

26 lines
588 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <mutex>
// class mutex;
// typedef pthread_mutex_t* native_handle_type;
// native_handle_type native_handle();
#include <mutex>
#include <cassert>
int main()
{
std::mutex m;
pthread_mutex_t* h = m.native_handle();
assert(h);
}