Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsEventQueueService.cpp File Reference
#include "nsEventQueueService.h"
#include "prmon.h"
#include "nsIComponentManager.h"
#include "nsIThread.h"
#include "nsPIEventQueueChain.h"
#include "prlog.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kEventQueueCID, NS_EVENTQUEUE_CID)
 hash_enum_remove_queues (const void *aThread_ptr, nsCOMPtr< nsIEventQueue > &aEldestQueue, void *closure)

Function Documentation

hash_enum_remove_queues ( const void aThread_ptr,
nsCOMPtr< nsIEventQueue > &  aEldestQueue,
void closure 
)

Definition at line 78 of file nsEventQueueService.cpp.

{
  // 'aQueue' should be the eldest queue.
  nsCOMPtr<nsPIEventQueueChain> pie(do_QueryInterface(aEldestQueue));
  nsCOMPtr<nsIEventQueue> q;

  // stop accepting events for youngest to oldest
  pie->GetYoungest(getter_AddRefs(q));
  while (q) {
    q->StopAcceptingEvents();

    nsCOMPtr<nsPIEventQueueChain> pq(do_QueryInterface(q));
    pq->GetElder(getter_AddRefs(q));
  }

  return PL_DHASH_REMOVE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static NS_DEFINE_CID ( kEventQueueCID  ,
NS_EVENTQUEUE_CID   
) [static]