qt5base-lts/examples
Giuseppe D'Angelo 3a449bbb69 Wait conditions example: code tidies
In no particular order:

* Clean up #includes.

* Document what is protected by the mutex.

* Use explicit, nullptr.

* Use lock managers, not manual calls to lock/unlock.

* Unlock the mutex before notifying the condition variables.

* Condition variables are always meant to be used in a while loop, and
  never with a plain if, because of spurious wakeups.

* Don't lock a mutex just to protect a plain integer. We have atomics
  for that use case.

* Remove an unneeded signal, therefore also the need of using
  Q_OBJECT and the inclusion of the moc-generated file.

Pick-to: 5.15 6.2 6.4
Fixes: QTBUG-108860
Change-Id: I2afc77955b95de8aa5fb88048cd9feb217f83b4f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2022-12-06 06:30:55 +01:00
..
aggregate
corelib Wait conditions example: code tidies 2022-12-06 06:30:55 +01:00
dbus Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
embedded Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
gui Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
network Remove showMaximized() workaround for Android in examples 2022-12-02 15:53:37 +01:00
opengl Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
qmake Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qpa Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
qtconcurrent Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
qtestlib Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
sql Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
vulkan Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
widgets CMake: Clean up usage of the examples/widgets/painting/shared lib 2022-12-05 15:55:53 +01:00
xml Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
CMakeLists.txt Examples: Use Qt6:: to qualify Qt CMake packages 2022-11-17 19:59:11 +01:00
examples.pro Turn off the dbus examples for qmake-generated VS projects 2021-02-09 15:45:06 +01:00
README

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.