mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-10 01:37:00 +00:00
New Thread objects should be adopted into a RefPtr upon creation. If creating a thread failed (e.g. out of memory), releasing the RefPtr will destruct the partially created object, but in the successful case the thread will add an additional reference that it keeps until it finishes execution. Adopting will drop it to 1 when returning from create_thread, or 0 if the thread could not be fully constructed.
6.1 KiB
6.1 KiB