Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsAppShell.cpp File Reference
#include "prmon.h"
#include "plhash.h"
#include "nsCOMPtr.h"
#include "nsAppShell.h"
#include "nsIAppShell.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include <stdlib.h>
#include "nsIWidget.h"
#include "nsIPref.h"
#include "nsCRT.h"
#include <Pt.h>
#include <errno.h>

Go to the source code of this file.

Defines

#define NUMBER_HASH_KEY(_num)   ((PLHashNumber) _num)

Functions

static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static int event_processor_callback (int fd, void *data, unsigned mode)
void MyMainLoop (void)
static PLHashNumber IntHashKey (PRInt32 key)

Variables

static PLHashTablesQueueHashTable = nsnull
static PLHashTablesCountHashTable = nsnull

Define Documentation

#define NUMBER_HASH_KEY (   _num)    ((PLHashNumber) _num)

Definition at line 261 of file nsAppShell.cpp.


Function Documentation

static int event_processor_callback ( int  fd,
void data,
unsigned  mode 
) [static]

Definition at line 118 of file nsAppShell.cpp.

{
       nsIEventQueue *eventQueue = (nsIEventQueue*)data;
       PtHold();
       if (eventQueue)
          eventQueue->ProcessPendingEvents();
       PtRelease();
  return Pt_CONTINUE;
}
static PLHashNumber IntHashKey ( PRInt32  key) [static]

Definition at line 264 of file nsAppShell.cpp.

{
  return NUMBER_HASH_KEY(key);
}

Definition at line 214 of file nsAppShell.cpp.

{
       nsAppShell::gExitMainLoop = PR_FALSE;
       while (! nsAppShell::gExitMainLoop)
       {
              PtProcessEvent();
       }

#ifdef DEBUG
    printf("nsAppShell: MyMainLoop exiting!\n");
#endif
}

Variable Documentation

Definition at line 59 of file nsAppShell.cpp.

Definition at line 58 of file nsAppShell.cpp.