Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
JavaMessageQueue Class Reference

#include <JavaMessageQueue.h>

Collaboration diagram for JavaMessageQueue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 JavaMessageQueue (Monitor *monitor)
void putMessage (JavaMessage *msg)
JavaMessagegetMessage ()
void enter ()
void exit ()
void wait ()
void wait (long long millis)
void notify ()
 JavaMessageQueue (Monitor *monitor)
void putMessage (JavaMessage *msg)
JavaMessagegetMessage ()
void enter ()
void exit ()
void wait ()
void wait (long long millis)
void notify ()

Private Attributes

JavaMessagemFirst
JavaMessagemLast
MonitormMonitor

Detailed Description

Definition at line 63 of file JavaMessageQueue.h.


Constructor & Destructor Documentation

Definition at line 63 of file CSecureEnv.cpp.

       :      mFirst(NULL), mLast(NULL), mMonitor(monitor)
{
}

Member Function Documentation

Definition at line 89 of file CSecureEnv.cpp.

{
       mMonitor->enter();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 94 of file CSecureEnv.cpp.

{
       mMonitor->exit();
}

Here is the call graph for this function:

Definition at line 79 of file CSecureEnv.cpp.

{
       JavaMessage* msg = mFirst;
       if (msg != NULL) {
              mFirst = mFirst->getNext();
              if (mFirst == NULL) mLast = NULL;
       }
       return msg;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 109 of file CSecureEnv.cpp.

{
       mMonitor->notify();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 68 of file CSecureEnv.cpp.

{
       if (mFirst == NULL) {
              mFirst = mLast = msg;
       } else {
              mLast->setNext(msg);
              mLast = msg;
       }
       msg->setNext(NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 99 of file CSecureEnv.cpp.

{
       mMonitor->wait();
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 104 of file CSecureEnv.cpp.

{
       mMonitor->wait(millis);
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 79 of file JavaMessageQueue.h.

Definition at line 80 of file JavaMessageQueue.h.

Definition at line 81 of file JavaMessageQueue.h.


The documentation for this class was generated from the following files: