Title: [248446] trunk/Source/WTF
Revision
248446
Author
[email protected]
Date
2019-08-08 15:57:10 -0700 (Thu, 08 Aug 2019)

Log 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:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (248445 => 248446)


--- trunk/Source/WTF/ChangeLog	2019-08-08 22:10:36 UTC (rev 248445)
+++ trunk/Source/WTF/ChangeLog	2019-08-08 22:57:10 UTC (rev 248446)
@@ -1,3 +1,15 @@
+2019-08-08  Chris Dumez  <[email protected]>
+
+        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:
+
 2019-08-08  Michael Saboff  <[email protected]>
 
         OpenSource MemoryFootprint API for JSC command line tool

Modified: trunk/Source/WTF/wtf/Logger.h (248445 => 248446)


--- trunk/Source/WTF/wtf/Logger.h	2019-08-08 22:10:36 UTC (rev 248445)
+++ trunk/Source/WTF/wtf/Logger.h	2019-08-08 22:57:10 UTC (rev 248446)
@@ -26,6 +26,7 @@
 #pragma once
 
 #include <wtf/Lock.h>
+#include <wtf/ThreadSafeRefCounted.h>
 #include <wtf/text/StringBuilder.h>
 
 namespace WTF {
@@ -106,7 +107,7 @@
     }
 };
 
-class Logger : public RefCounted<Logger> {
+class Logger : public ThreadSafeRefCounted<Logger> {
     WTF_MAKE_NONCOPYABLE(Logger);
 public:
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to