qt5base-lts/tests/auto/corelib/thread/qmutex
Giuseppe D'Angelo a594f85d54 Q(Basic)Mutex: add try_lock{,_for,_until} for STL compatibility
Now QBasicMutex is Lockable and QMutex is TimedLockable, which means they can
be used in std::lock_guard, std::unique_lock, std::lock, etc.

[ChangeLog][QtCore][QMutex] QMutex now fully models the TimedLockable
concept by providing the try_lock, try_lock_for and try_lock_until
functions, therefore making it usable in Standard Library lock
management classes and functions.

Change-Id: I7c691481a5781a696701e1ab78186b5cefbd6a87
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-07-25 13:10:07 +00:00
..
.gitignore Moving relevant tests to corelib/thread 2011-09-01 12:54:58 +02:00
qmutex.pro Use QElapsedTimer in tst_qmutex 2016-07-22 23:18:27 +00:00
tst_qmutex.cpp Q(Basic)Mutex: add try_lock{,_for,_until} for STL compatibility 2016-07-25 13:10:07 +00:00