Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7a45fd2070ddab5517b56a52f0b05d42741662fc
https://github.com/WebKit/WebKit/commit/7a45fd2070ddab5517b56a52f0b05d42741662fc
Author: Sihui Liu <[email protected]>
Date: 2024-11-08 (Fri, 08 Nov 2024)
Changed paths:
M Source/WebCore/platform/audio/AudioSession.cpp
M Source/WebCore/platform/audio/AudioSession.h
Log Message:
-----------
AudioSession::shouldManageAudioSessionCategory() is not thread-safe
https://bugs.webkit.org/show_bug.cgi?id=282663
rdar://139323603
Reviewed by Eric Carlson.
Make the function thread-safe by making s_shouldManageAudioSessionCategory
atomic. Also moving the definition into .cpp
file as WEBCORE_EXPORT class is not supposed to have inline functions according
to style checker.
* Source/WebCore/platform/audio/AudioSession.cpp:
(WebCore::AudioSession::shouldManageAudioSessionCategory):
(WebCore::AudioSession::setShouldManageAudioSessionCategory):
* Source/WebCore/platform/audio/AudioSession.h:
Canonical link: https://commits.webkit.org/286342@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes