Back to index

lightning-sunbird  0.9+nobinonly
Functions
mozSqlConnection.cpp File Reference
#include "nsIProxyObjectManager.h"
#include "mozSqlRequest.h"
#include "mozSqlConnection.h"

Go to the source code of this file.

Functions

 NS_IMPL_THREADSAFE_QUERY_INTERFACE3 (mozSqlConnection, mozISqlConnection, nsIRunnable, nsISupportsWeakReference) mozSqlConnection

Function Documentation

Definition at line 64 of file mozSqlConnection.cpp.

{
  PR_AtomicDecrement((PRInt32*)&mRefCnt);
  // Delete if the last reference is our strong circular reference.
  if (mThread && mRefCnt == 1) {
    PR_Lock(mLock);
    mRequests.Clear();
    mShutdown = PR_TRUE;
    if (mWaiting)
      PR_NotifyCondVar(mCondVar);
    else
      CancelExec();
    PR_Unlock(mLock);
    return 0;
  }
  else if (mRefCnt == 0) {
    delete this;
    return 0;
  }
  return mRefCnt;
}

Here is the call graph for this function: