mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibThreading: Remove Weakable from Thread
Weakable is not thread-safe, so taking a strong reference from a WeakPtr<Thread> may result in a use-after-free. We don't use this functionality anywhere anyway, so remove it.
This commit is contained in:
parent
2aaf53bd2c
commit
fceb73e65a
Notes:
github-actions[bot]
2025-09-23 14:59:14 +00:00
Author: https://github.com/Zaggy1024
Commit: fceb73e65a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6223
Reviewed-by: https://github.com/konradekk
1 changed files with 1 additions and 2 deletions
|
|
@ -43,8 +43,7 @@ enum class ThreadState : u8 {
|
|||
};
|
||||
|
||||
class Thread final
|
||||
: public AtomicRefCounted<Thread>
|
||||
, public Weakable<Thread> {
|
||||
: public AtomicRefCounted<Thread> {
|
||||
public:
|
||||
static NonnullRefPtr<Thread> construct(ESCAPING Function<intptr_t()> action, StringView thread_name = {})
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue