Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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 Methods

 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. More...

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

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

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


Protected Methods

 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    aContext 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    aContext 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