mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 15:54:58 +00:00
Ladybird/Android: Add EventLoopImplementation for ALooper
Timers run in their own thread, to take advantage of existing Java Executor features. By hooking into ALooper, we can spin the main Activity's UI thread event loop without causing a fuss, or spinning the CPU by just polling our event loop constantly.
This commit is contained in:
parent
d63fb8fa61
commit
d93911928b
11 changed files with 510 additions and 40 deletions
|
@ -14,4 +14,7 @@ Java_org_serenityos_ladybird_WebContentService_nativeHandleTransferSockets(JNIEn
|
|||
__android_log_print(ANDROID_LOG_INFO, "WebContent", "New binding received, sockets %d and %d", ipc_socket, fd_passing_socket);
|
||||
::close(ipc_socket);
|
||||
::close(fd_passing_socket);
|
||||
|
||||
// FIXME: Create a new thread to start WebContent processing
|
||||
// Make sure to create IPC sockets *in that thread*!
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue