Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

EventContext Class Reference

EventContext shows off how by extending ThreadContext we can add arguments to the call and use any method not just those prototyped by the system. More...

#include <EventContext.hpp>

Inheritance diagram for EventContext:

corelinux::ThreadContext corelinux::Synchronized List of all members.

Public Member Functions

 EventContext (ArgumentFunctionPtr, corelinux::EventSemaphoreGroupPtr) throw ( corelinux::Assertion )
 Default Constructor.

 EventContext (ArgumentFunctionPtr, corelinux::Size, corelinux::EventSemaphoreGroupPtr) throw ( corelinux::Assertion )
 With stack.

 EventContext (EventContextCref) throw ( corelinux::Assertion )
 Copy constructor.

virtual ~EventContext (void)
 Virtual destructor.

EventContextRef operator= (EventContextCref) throw ( corelinux::Assertion )
 Assignment operator changes the context.

bool operator== (EventContextCref) const
 Equality operator compares contexts.

corelinux::EventSemaphoreGroupPtr getArgument (void) const
 Return the argument to the caller.

void setArgument (corelinux::EventSemaphoreGroupPtr)
 Sets the argument after initialization.


Protected Member Functions

 EventContext (void) throw ( corelinux::Assertion )
 Can't use!

ArgumentFunctionPtr getArgumentFunction (void)
 Return the function to invoke.


Detailed Description

EventContext shows off how by extending ThreadContext we can add arguments to the call and use any method not just those prototyped by the system.


Member Function Documentation

EventContextRef EventContext::operator= EventContextCref   )  throw ( corelinux::Assertion )
 

Assignment operator changes the context.

Parameters:
EventContext reference to existing context
Returns:
EventContext reference
Exceptions:
ThreadNotWaitingException if the Event context is not in a THREAD_WAITING_TO_START state.

bool EventContext::operator== EventContextCref   )  const
 

Equality operator compares contexts.

Parameters:
EventContext reference to existing context
Returns:
bool true if same


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium