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
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…
Reference in a new issue