1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:47:35 +00:00
serenity/Ladybird/Android
Andrew Kaster ec05b4bc0a Ladybird/Android: Post timer events to the correct event loop
The FIXME at the bottom of Timer.nativeRun was on the money, and was
the cause of some leaked timers. Solve the issue by passing the
EventLoopImplementation to the JVM Timer object and retrieving it's
thread_local timer list, and posting the events to the Impl rather than
trying to invoke the receiver's timer event callback directly in
the Timer thread. Because the implementation of
ALooperEventLoopManager::did_post_event() reaches for
EventLoop::current(), we also need to make sure that the timer thread
acutally *has* an EventLoop, even if we don't expect to use it for
anything. And we need to make sure to pump it to clear out any of the
poke() invocations sending 4 bytes to the wake pipe for that thread.
2023-09-15 14:18:52 -06:00
..
src Ladybird/Android: Post timer events to the correct event loop 2023-09-15 14:18:52 -06:00
build.gradle.kts Ladybird/Android: Move host build into its own shell script 2023-09-08 09:01:34 -06:00
BuildLagomTools.sh Ladybird/Android: Move host build into its own shell script 2023-09-08 09:01:34 -06:00
proguard-rules.pro Ladybird: Add new template Kotlin Android application without Qt 2023-09-03 11:38:51 +02:00