xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Events::Request Class Reference

A request, carrying inter-thread communication. More...

#include <requesttypes.h>

Collaboration diagram for Events::Request:
Collaboration graph
[legend]

Public Member Functions

 Request (ITCEvent type)
 
 ~Request ()
 
bool isGarbage () const
 

Private Member Functions

void create ()
 Create the empty request frame. More...
 
void copyToReply ()
 Copy reply data to the reply address. More...
 
void signalReply ()
 Signal that the request was answered. More...
 
void setGarbage ()
 

Private Attributes

ITCEvent _type
 
bool _dispatched
 Was the request dispatched? More...
 
bool _garbage
 
Common::Semaphore _hasReply
 Do we have a reply? More...
 
Event _event
 The actual event. More...
 
union {
   RequestCallInMainThread   _callInMainThread
 
   RequestDataGLContainer   _glContainer
 
}; 
 Request data. More...
 

Friends

class EventsManager
 
class RequestManager
 

Detailed Description

A request, carrying inter-thread communication.

Definition at line 52 of file requesttypes.h.

Constructor & Destructor Documentation

◆ Request()

Events::Request::Request ( ITCEvent  type)

Definition at line 33 of file requesttypes.cpp.

References create().

Here is the call graph for this function:

◆ ~Request()

Events::Request::~Request ( )

Definition at line 39 of file requesttypes.cpp.

Member Function Documentation

◆ copyToReply()

void Events::Request::copyToReply ( )
private

Copy reply data to the reply address.

Definition at line 61 of file requesttypes.cpp.

◆ create()

void Events::Request::create ( )
private

Create the empty request frame.

Definition at line 51 of file requesttypes.cpp.

References _event, _type, and Events::kEventITC.

Referenced by Request().

Here is the caller graph for this function:

◆ isGarbage()

bool Events::Request::isGarbage ( ) const

Definition at line 42 of file requesttypes.cpp.

References _dispatched, and _garbage.

Referenced by Events::requestIsGarbage().

Here is the caller graph for this function:

◆ setGarbage()

void Events::Request::setGarbage ( )
private

Definition at line 47 of file requesttypes.cpp.

References _garbage.

◆ signalReply()

void Events::Request::signalReply ( )
private

Signal that the request was answered.

Definition at line 57 of file requesttypes.cpp.

References _hasReply, and Common::Semaphore::unlock().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ EventsManager

friend class EventsManager
friend

Definition at line 86 of file requesttypes.h.

◆ RequestManager

friend class RequestManager
friend

Definition at line 87 of file requesttypes.h.

Member Data Documentation

◆ @10

union { ... }

Request data.

◆ _callInMainThread

RequestCallInMainThread Events::Request::_callInMainThread

Definition at line 71 of file requesttypes.h.

Referenced by Events::EventsManager::requestCallInMainThread().

◆ _dispatched

bool Events::Request::_dispatched
private

Was the request dispatched?

Definition at line 62 of file requesttypes.h.

Referenced by isGarbage().

◆ _event

Event Events::Request::_event
private

The actual event.

Definition at line 67 of file requesttypes.h.

Referenced by create().

◆ _garbage

bool Events::Request::_garbage
private

Definition at line 63 of file requesttypes.h.

Referenced by isGarbage(), and setGarbage().

◆ _glContainer

RequestDataGLContainer Events::Request::_glContainer

◆ _hasReply

Common::Semaphore Events::Request::_hasReply
private

Do we have a reply?

Definition at line 65 of file requesttypes.h.

Referenced by signalReply().

◆ _type

ITCEvent Events::Request::_type
private

Definition at line 60 of file requesttypes.h.

Referenced by create().


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