Bug 451463 - mozStorageStatement needs threadsafe refcounting

This changeset makes mozStoageStatement use threadsafe refcounting.  The class
is still not threadsafe, but JS consumers cannot create a statement off of the
main thread since it would be garbage collected on the main thread.
r=bent
This commit is contained in:
Shawn Wilsher 2008-08-27 13:11:02 -04:00
Родитель 8415fd9d17
Коммит 67c7cc11c7
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1,5 +1,5 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: sw=4 ts=4 sts=4
* vim: sw=4 ts=4 sts=4 expandtab
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
@ -87,7 +87,11 @@ protected:
** mozStorageStatement
**/
NS_IMPL_ISUPPORTS2(mozStorageStatement, mozIStorageStatement, mozIStorageValueArray)
NS_IMPL_THREADSAFE_ISUPPORTS2(
mozStorageStatement
, mozIStorageStatement
, mozIStorageValueArray
)
mozStorageStatement::mozStorageStatement()
: mDBConnection (nsnull), mDBStatement(nsnull), mColumnNames(nsnull), mExecuting(PR_FALSE)