3 * - By John Hodge (thePowersGang)
6 * - C++11's tutex handling
11 #include "_libcxx_helpers.h"
14 # error "<mutex> requires C++11 support"
24 constexpr mutex() noexcept:
28 mutex(const mutex&) = delete;
29 mutex& operator=(const mutex&) = delete;
36 typedef void* native_handle;
38 // TODO: Proper userland mutex support
42 struct defer_lock_t {};
43 struct try_to_lock_t {};
44 struct adopt_lock_t {};
46 template< class Mutex >
50 typedef Mutex mutex_type;
54 lock_guard(mutex_type& m):
59 lock_guard(mutex_type& m, std::adopt_lock_t t):