Bug 997242 - Make DeviceStorageFileDescriptor use a threadsafe reference count. r=khuey
authorDave Hylands <dhylands@mozilla.com>
Mon, 21 Apr 2014 11:56:04 -0700
changeset 179864 1f2b13a29a74337aa80c70be3ee2b40c6ecce6f1
parent 179863 dc037e7f4228647e91e91a5d54344a9e6888d580
child 179865 c962bde5ac0b277dbcce06e071b7f0011e58a49b
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerskhuey
bugs997242
milestone31.0a1
Bug 997242 - Make DeviceStorageFileDescriptor use a threadsafe reference count. r=khuey
dom/devicestorage/DeviceStorageFileDescriptor.h
--- a/dom/devicestorage/DeviceStorageFileDescriptor.h
+++ b/dom/devicestorage/DeviceStorageFileDescriptor.h
@@ -6,14 +6,14 @@
 
 #ifndef DeviceStorageFileDescriptor_h
 #define DeviceStorageFileDescriptor_h
 
 #include "mozilla/ipc/FileDescriptor.h"
 
 struct DeviceStorageFileDescriptor MOZ_FINAL
 {
-  NS_INLINE_DECL_REFCOUNTING(DeviceStorageFileDescriptor)
+  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DeviceStorageFileDescriptor)
   nsRefPtr<DeviceStorageFile> mDSFile;
   mozilla::ipc::FileDescriptor mFileDescriptor;
 };
 
 #endif