Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsHttpConnectionMgr.cpp File Reference
#include "nsHttpConnectionMgr.h"
#include "nsHttpConnection.h"
#include "nsHttpPipeline.h"
#include "nsHttpHandler.h"
#include "nsAutoLock.h"
#include "nsNetCID.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID)
static void InsertTransactionSorted (nsVoidArray &pendingQ, nsHttpTransaction *trans)

Variables

PRThreadgSocketThread

Function Documentation

static void InsertTransactionSorted ( nsVoidArray pendingQ,
nsHttpTransaction trans 
) [static]

Definition at line 57 of file nsHttpConnectionMgr.cpp.

{
    // insert into queue with smallest valued number first.  search in reverse
    // order under the assumption that many of the existing transactions will
    // have the same priority (usually 0).

    for (PRInt32 i=pendingQ.Count()-1; i>=0; --i) {
        nsHttpTransaction *t = (nsHttpTransaction *) pendingQ[i];
        if (trans->Priority() >= t->Priority()) {
            pendingQ.InsertElementAt(trans, i+1);
            return;
        }
    }
    pendingQ.InsertElementAt(trans, 0);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kSocketTransportServiceCID  ,
NS_SOCKETTRANSPORTSERVICE_CID   
) [static]

Variable Documentation

Definition at line 58 of file nsSocketTransportService2.cpp.