mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
8efcc4cad7
commit
08e0233a18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user