bug 206254 allow nsBaseHashtable::IsInitialized() and bug 206528 nsBaseHashtable should initialize mLock. r=alecf
git-svn-id: svn://10.0.0.236/trunk@142935 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5f78562873
commit
04eda085a6
@ -108,6 +108,13 @@ public:
|
||||
PRBool Init(PRUint32 initSize = PL_DHASH_MIN_SIZE,
|
||||
PRBool threadSafe = PR_FALSE);
|
||||
|
||||
/**
|
||||
* Check whether the table has been initialized.
|
||||
* This function is especially useful for static hashtables.
|
||||
* @return PR_TRUE if the table has been initialized.
|
||||
*/
|
||||
PRBool IsInitialized() const { return mTable.entrySize; }
|
||||
|
||||
/**
|
||||
* retrieve the value for a key.
|
||||
* @param aKey the key to retreive
|
||||
@ -246,6 +253,7 @@ nsBaseHashtableET<KeyClass,DataType>::~nsBaseHashtableET()
|
||||
|
||||
template<class KeyClass,class DataType,class UserDataType>
|
||||
nsBaseHashtable<KeyClass,DataType,UserDataType>::nsBaseHashtable()
|
||||
: mLock(nsnull)
|
||||
{ }
|
||||
|
||||
template<class KeyClass,class DataType,class UserDataType>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user