===================================================================
@@ -52,8 +52,8 @@
*/
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
- /// shared_mutex
- class shared_mutex
+ /// shared_timed_mutex
+ class shared_timed_mutex
{
#if _GTHREAD_USE_MUTEX_TIMEDLOCK
struct _Mutex : mutex, __timed_mutex_impl<_Mutex>
@@ -84,15 +84,15 @@
static constexpr unsigned _M_n_readers = ~_S_write_entered;
public:
- shared_mutex() : _M_state(0) {}
+ shared_timed_mutex() : _M_state(0) {}
- ~shared_mutex()
+ ~shared_timed_mutex()
{
_GLIBCXX_DEBUG_ASSERT( _M_state == 0 );
}
- shared_mutex(const shared_mutex&) = delete;
- shared_mutex& operator=(const shared_mutex&) = delete;
+ shared_timed_mutex(const shared_timed_mutex&) = delete;
+ shared_timed_mutex& operator=(const shared_timed_mutex&) = delete;
// Exclusive ownership
===================================================================
@@ -30,7 +30,7 @@
void test01()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
@@ -66,7 +66,7 @@
void test02()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -31,7 +31,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
typedef std::chrono::system_clock clock_type;
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -31,7 +31,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -27,5 +27,5 @@
namespace std
{
- template class shared_lock<shared_mutex>;
+ template class shared_lock<shared_timed_mutex>;
}
===================================================================
@@ -28,6 +28,6 @@
void test01()
{
// Check for required typedefs
- typedef std::shared_lock<std::shared_mutex> test_type;
+ typedef std::shared_lock<std::shared_timed_mutex> test_type;
typedef test_type::mutex_type mutex_type;
}
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -31,7 +31,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
typedef std::chrono::system_clock clock_type;
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -31,7 +31,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
typedef std::chrono::system_clock clock_type;
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
typedef std::shared_lock<mutex_type> lock_type;
try
===================================================================
@@ -27,5 +27,5 @@
void test01()
{
__gnu_test::standard_layout test;
- test.operator()<std::shared_mutex>();
+ test.operator()<std::shared_timed_mutex>();
}
===================================================================
@@ -26,7 +26,7 @@
void test01()
{
// assign
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
mutex_type m1;
mutex_type m2(m1); // { dg-error "deleted" }
}
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
try
{
===================================================================
@@ -26,7 +26,7 @@
void test01()
{
// assign
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
mutex_type m1;
mutex_type m2;
m1 = m2; // { dg-error "deleted" }
===================================================================
@@ -31,7 +31,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
try
{
===================================================================
@@ -30,7 +30,7 @@
int main()
{
bool test __attribute__((unused)) = true;
- typedef std::shared_mutex mutex_type;
+ typedef std::shared_timed_mutex mutex_type;
try
{