haiku/src
Michael Lotz 462bfeede0 registrar: Fix race condition on MimeUpdateThread termination.
When the MimeUpdateThread is done, it marks itself as finished and
notifies the thread manager to clean up finished threads. Since multiple
such threads might finish at the same time and trigger the cleanup
notification, other threads that already marked themselves finished but
haven't actually exited yet might already be deleted and removed. This
would then lead to a use-after-free when they subsequently tried to send
their own cleanup message.

To solve the race condition, the thread manager will now wait for the
thread to actually exit before cleaning it up.

The introduction of the launch_daemon has made this race condition more
likely due to more applications starting in parallel, each triggering a
CreateAppMetaMimeThread which is a subclass of MimeUpdateThread. This
commit might therefore fix #12237.
2015-08-23 12:30:35 +02:00
..
add-ons bfs: Use negative caching on directory lookup failures. 2015-08-20 21:25:56 +02:00
apps PowerStatus: style fixes. 2015-08-23 09:19:35 +02:00
bin leak_analyser: Update excludes with more generic regex for ICU. 2015-08-13 22:34:51 +02:00
build Remove second half of useless condition. 2015-07-26 20:31:10 +02:00
data French keymap: add some missing symbols. 2015-08-09 12:05:57 +02:00
kits Spinner: Tweak the spinner button colors 2015-08-22 15:15:08 -07:00
libs build: Convert to external libedit build package 2015-07-04 15:29:05 -05:00
preferences Split BSpinner into BAbstractSpinner and... 2015-08-22 15:15:08 -07:00
servers registrar: Fix race condition on MimeUpdateThread termination. 2015-08-23 12:30:35 +02:00
system libroot_debug: Support alignments > B_PAGE_SIZE in guarded heap. 2015-08-20 21:59:41 +02:00
tests Assorted whitespace cleanup and typo fixes. 2015-08-20 21:54:41 +02:00
tools EntryCache: Add entry_cache_add_missing() for negative caching. 2015-08-20 21:25:56 +02:00
Jamfile Interface Guidelines: migrate to docs/, use DocBookCSS. 2015-02-12 17:08:04 -05:00