From a6bc0157eb5ec0fa9f5d27af9c10b6d9c85d5e18 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 13 Sep 2016 14:20:37 -0700 Subject: [PATCH] Correct the C++ standard references in QMutex functions Section 30.4.1.3 [thread.timedmutex.requirements] has 16 paragraphs and 2 subsections. Change-Id: I9093948278414644a416fffd1473fec7fdd2716c Reviewed-by: Marc Mutz Reviewed-by: Edward Welbourne --- src/corelib/thread/qmutex.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/thread/qmutex.h b/src/corelib/thread/qmutex.h index da8d1704b0..3a0e22e3bd 100644 --- a/src/corelib/thread/qmutex.h +++ b/src/corelib/thread/qmutex.h @@ -135,8 +135,8 @@ public: template bool try_lock_for(std::chrono::duration duration) { - // § 30.4.1.3.5 [thread.timedmutex.requirements] specifies that a - // duration less than or equal to duration.zero() shall result in a + // N4606 § 30.4.1.3 [thread.timedmutex.requirements]/5 specifies that + // a duration less than or equal to duration.zero() shall result in a // try_lock, unlike QMutex's tryLock with a negative duration which // results in a lock. @@ -150,7 +150,7 @@ public: bool try_lock_until(std::chrono::time_point timePoint) { // Implemented in terms of try_lock_for to honor the similar - // requirement in § 30.4.1.3.12 [thread.timedmutex.requirements] + // requirement in N4606 § 30.4.1.3 [thread.timedmutex.requirements]/12. return try_lock_for(timePoint - Clock::now()); }