~/talk

Using a Smart Event Dispatcher in C++

Talkat CppCon 2019 · 2019-09-15..09-20· [frontend-architecture]
links:none on file
slides:none on file

Covers implementing an event dispatcher in C++ that avoids the lapsed listener problem by storing observers as weak_ptr vector and cleaning dead entries before notifying, warns to don't call under lock because callbacks can modify registration and cause crashes or deadlocks, recommends a copy-and-broadcast approach that removes dead observers while copying, and suggests nonblocking patterns such as launching handlers concurrently or using an executor/task queue to avoid blocking and improve safety and latency.

AI-written summary · about

~/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.