~/talk

Advanced Qt - A Deep Dive 3/6 Multithreading Part1

Talkat Qt Developer Days Munich 2011 · 2011-10-24..10-26· [concurrency, c-and-cpp]
links:none on file
links:none on file
slides:none on file

Covers Qt’s practical multithreading: use separate threads to keep the GUI responsive and QThread/exec for per-thread event loops, not for heavy parallel CPU work where QtConcurrent is better. Demonstrates QThread/QObject affinity pitfalls (QThread is a QObject so creating timers in the constructor runs them on the wrong thread), shows QThreadPool + QRunnable with releaseThread/reserveThread, warns against subclassing QRunnable from QObject, explains cross-thread signal-slot marshalling, Q_DECLARE_METATYPE/qRegisterMetaType for copies, and using QMetaObject::invokeMethod to return results.

AI-written summary · about

  1. 0:00Intro
  2. 1:24Multithreading
  3. 1:34Use Cases
  4. 4:51Do I need multithreading
  5. 11:35Protections
  6. 12:30Queued
  7. 16:25Threat Pools
  8. 19:35Warnings
  9. 20:31Thread Pool
  10. 24:02Sweat Communication
  11. 24:15Sweat Affinity
  12. 26:46Event Processing
  13. 27:49Signal Slot Connections
  14. 34:11Dont do this
  15. 38:15Signal Slots
  16. 42:51QSweat
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.