Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28bb528b authored by Mark Fasheh's avatar Mark Fasheh
Browse files

LegacyMessageQueue add missing methods

getConcurrent() is missing and we won't build without it.

Declaration for nativeSetSkipEpollWaitForZeroTimeout is missing
and we won't boot without it.

Bug: 441095573
Test: atest MessageQueueTest
Flag: EXEMPT - bugfix
Change-Id: I68bddf1607e97119bc1415a199501afeec2772b9
parent 34879414
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ public final class MessageQueue {
    private native static boolean nativeIsPolling(long ptr);
    @RavenwoodRedirect
    private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events);
    @RavenwoodRedirect
    private native static void nativeSetSkipEpollWaitForZeroTimeout(long ptr);

    MessageQueue(boolean quitAllowed) {
        mQuitAllowed = quitAllowed;
@@ -120,6 +122,10 @@ public final class MessageQueue {
        }
    }

    static boolean getUseConcurrent() {
        return false;
    }

    /**
     * Returns true if the looper has no pending messages which are due to be processed
     * and is not blocked on sync barrier.