ladybird/Libraries/LibThread
Sergey Bugaev cbf2881bf7 LibThread: Fix destroying background actions
In the old model, before bc319d9e88, the parent
(the background thread) would delete us when it exits (i.e. never), so we had to
keep track of our own refcount in order to destroy ourselves when we're done.

With bc319d9e88, the parent keeps additional
reference to us, so:
* There should be no need to explicitly ref() ourselves
* The unref() would not get rid of the last reference to us anymore

The latter is why all the BackgroundAction's were getting leaked. Fix this by
simply unparenting ourselves from the background thread when we're done.
2020-02-25 10:17:31 +01:00
..
BackgroundAction.cpp Meta: Claim copyright for files created by me 2020-01-24 15:15:16 +01:00
BackgroundAction.h LibThread: Fix destroying background actions 2020-02-25 10:17:31 +01:00
Lock.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Makefile Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00
Thread.cpp LibThread: Store thread id as pthread_t, use pthread_self() 2020-02-05 18:39:45 +01:00
Thread.h LibCore: Remove leading C from filenames 2020-02-06 15:04:03 +01:00