diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-09-13 14:20:37 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-09-16 15:33:46 +0000 |
commit | a6bc0157eb5ec0fa9f5d27af9c10b6d9c85d5e18 (patch) | |
tree | b0d073d197cc1a1ae838bcef8d1c131b896aa25c /src | |
parent | 8d6f2e7e157d5778e37e54cd7e90c3185970abff (diff) |
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 <marc.mutz@kdab.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/thread/qmutex.h | 6 |
1 files 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 <class Rep, class Period> bool try_lock_for(std::chrono::duration<Rep, Period> 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<Clock, Duration> 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()); } |