⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248446 in webkit


Ignore:
Timestamp:
Aug 8, 2019, 3:57:10 PM (7 years ago)
Author:
Chris Dumez
Message:

Fix thread safety issue in AudioSampleDataSource() constructor
https://bugs.webkit.org/show_bug.cgi?id=200547

Reviewed by Alex Christensen.

Make Logger ThreadSafeRefCounted as it is ref'd / deref'd from various
threads (including the main thread and the WebKitWebRTCAudioModule thread).

  • wtf/Logger.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r248441 r248446  
     12019-08-08  Chris Dumez  <cdumez@apple.com>
     2
     3        Fix thread safety issue in AudioSampleDataSource() constructor
     4        https://bugs.webkit.org/show_bug.cgi?id=200547
     5
     6        Reviewed by Alex Christensen.
     7
     8        Make Logger ThreadSafeRefCounted as it is ref'd / deref'd from various
     9        threads (including the main thread and the WebKitWebRTCAudioModule thread).
     10
     11        * wtf/Logger.h:
     12
    1132019-08-08  Michael Saboff  <msaboff@apple.com>
    214
  • trunk/Source/WTF/wtf/Logger.h

    r248288 r248446  
    2727
    2828#include <wtf/Lock.h>
     29#include <wtf/ThreadSafeRefCounted.h>
    2930#include <wtf/text/StringBuilder.h>
    3031
     
    107108};
    108109
    109 class Logger : public RefCounted<Logger> {
     110class Logger : public ThreadSafeRefCounted<Logger> {
    110111    WTF_MAKE_NONCOPYABLE(Logger);
    111112public:
Note: See TracChangeset for help on using the changeset viewer.