Add a comment to WeakPtr.h which explicitly calls out the fact that it's not thread-safe, no bug, DONTBUILD

This commit is contained in:
Ehsan Akhgari 2014-03-28 00:12:30 -04:00
Родитель b344638c9b
Коммит 5da1cb00cf
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -14,6 +14,8 @@
* the WeakPtrs to it and allows the WeakReference to live beyond the lifetime
* of 'Foo'.
*
* PLEASE NOTE: This weak pointer implementation is not thread-safe.
*
* Note that when deriving from SupportsWeakPtr you should add
* MOZ_DECLARE_REFCOUNTED_TYPENAME(ClassName) to the public section of your
* class, where ClassName is the name of your class.