Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8aa34ebe7063ddcfec42f2268fa999723a5462db
https://github.com/WebKit/WebKit/commit/8aa34ebe7063ddcfec42f2268fa999723a5462db
Author: Carlos Garcia Campos <[email protected]>
Date: 2025-11-21 (Fri, 21 Nov 2025)
Changed paths:
M Source/WTF/wtf/glib/ActivityObserver.h
M Source/WTF/wtf/glib/RunLoopGLib.cpp
M Source/WebCore/platform/glib/RunLoopObserverGLib.cpp
M Tools/TestWebKitAPI/Tests/WTF/glib/ActivityObserver.cpp
Log Message:
-----------
[GLIB] Move the run loop observer repeating logic to ActivityObserver
https://bugs.webkit.org/show_bug.cgi?id=302855
Reviewed by Nikolas Zimmermann.
This way neither the caller to notify() nor the callback need to check
whether the observer is repeating or not. It's simpler, but also safer
because ActivityObserver is refcounted and always protected while
notify() is called, so we can safely check if it's repeating after the
callback is called even if it's stopped by the callback.
Canonical link: https://commits.webkit.org/303382@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications