mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
The DeferredInvocationContext only existed to satisfy the requirement in ThreadEventQueue that each event has an EventReceiver. However, deferred_invoke() was not even using the EventReceiver to call its callback. Therefore, we don't need to allocate one for every deferred invocation. This also prevents WeakPtr::strong_ref() from racing and leaking the context object when invoking a function across threads. |
||
|---|---|---|
| .. | ||
| EventLoopImplementationMacOS.h | ||
| EventLoopImplementationMacOS.mm | ||
| EventLoopImplementationQt.cpp | ||
| EventLoopImplementationQt.h | ||
| EventLoopImplementationQtEventTarget.cpp | ||
| EventLoopImplementationQtEventTarget.h | ||