Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

PRInt32 tmQueue::Init ( const char *  aName,
PRUint32  aID,
tmTransactionManager aTM 
)

Initialize internal storage vectors and set the name of the queue and the pointer to the TM container.

Returns:
NS_OK if everything succeeds

-1 if initialization fails

Definition at line 70 of file tmQueue.cpp.

References tmVector::Init().

Referenced by tmTransactionManager::AddQueue().

                                                                        {
  PR_ASSERT(mTM == nsnull);

  if (NS_SUCCEEDED(mTransactions.Init()) &&
      NS_SUCCEEDED(mListeners.Init()) &&
      ((mName = PL_strdup(aName)) != nsnull) ) {
    mTM = aTM;
    mID = aID;
    return NS_OK;
  }
  return -1;
}


Generated by  Doxygen 1.6.0   Back to index