Changeset 248431 in webkit
- Timestamp:
- Aug 8, 2019 11:41:23 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r248410 r248431 1 2019-08-08 Chris Dumez <cdumez@apple.com> 2 3 Make IDBRequest ThreadSafeRefCounted 4 https://bugs.webkit.org/show_bug.cgi?id=200540 5 6 Reviewed by Alex Christensen. 7 8 Make IDBRequest ThreadSafeRefCounted, as it looks like it is being ref'd / deref'd 9 from several threads, in IDBConnectionProxy::notifyOpenDBRequestBlocked() for 10 example. 11 12 * Modules/indexeddb/IDBRequest.h: 13 1 14 2019-08-08 Brady Eidson <beidson@apple.com> 2 15 -
trunk/Source/WebCore/Modules/indexeddb/IDBRequest.h
r244436 r248431 42 42 #include <wtf/Function.h> 43 43 #include <wtf/Scope.h> 44 #include <wtf/ThreadSafeRefCounted.h> 44 45 #include <wtf/WeakPtr.h> 45 46 … … 61 62 } 62 63 63 class IDBRequest : public EventTargetWithInlineData, public IDBActiveDOMObject, public RefCounted<IDBRequest>, public CanMakeWeakPtr<IDBRequest> {64 class IDBRequest : public EventTargetWithInlineData, public IDBActiveDOMObject, public ThreadSafeRefCounted<IDBRequest>, public CanMakeWeakPtr<IDBRequest> { 64 65 WTF_MAKE_ISO_ALLOCATED(IDBRequest); 65 66 public: … … 103 104 ScriptExecutionContext* scriptExecutionContext() const final { return ActiveDOMObject::scriptExecutionContext(); } 104 105 105 using RefCounted::ref;106 using RefCounted::deref;106 using ThreadSafeRefCounted::ref; 107 using ThreadSafeRefCounted::deref; 107 108 108 109 void completeRequestAndDispatchEvent(const IDBResultData&); … … 161 162 virtual void cancelForStop(); 162 163 163 void refEventTarget() final { RefCounted::ref(); }164 void derefEventTarget() final { RefCounted::deref(); }164 void refEventTarget() final { ThreadSafeRefCounted::ref(); } 165 void derefEventTarget() final { ThreadSafeRefCounted::deref(); } 165 166 void uncaughtExceptionInEventHandler() final; 166 167
Note: See TracChangeset
for help on using the changeset viewer.