The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SignalEvent Class Reference
+ Inheritance diagram for SignalEvent:
+ Collaboration diagram for SignalEvent:

Public Member Functions

 SignalEvent (uintptr_t handlerAddress, size_t signalNum, size_t specificNestingLevel=~0UL)
 
virtual size_t serialize (uint8_t *pBuffer)
 
virtual size_t getNumber ()
 
- Public Member Functions inherited from Event
 Event (uintptr_t handlerAddress, bool isDeletable, size_t specificNestingLevel=~0UL)
 
virtual bool isDeletable ()
 
uintptr_t getHandlerAddress ()
 
size_t getSpecificNestingLevel ()
 
 Event (const Event &other)
 
Eventoperator= (const Event &other)
 
void registerThread (Thread *thread)
 
void deregisterThread (Thread *thread)
 
size_t pendingCount ()
 
virtual void waitForDeliveries ()
 

Static Public Member Functions

static bool unserialize (uint8_t *pBuffer, Event &event)
 
- Static Public Member Functions inherited from Event
static uintptr_t getTrampoline ()
 
static uintptr_t getSecondaryTrampoline ()
 
static uintptr_t getHandlerBuffer ()
 
static uintptr_t getLastHandlerBuffer ()
 
static bool unserialize (uint8_t *pBuffer, Event &event)
 
static size_t getEventType (uint8_t *pBuffer)
 

Private Attributes

size_t m_SignalNumber
 

Additional Inherited Members

- Protected Attributes inherited from Event
uintptr_t m_HandlerAddress
 
bool m_bIsDeletable
 
size_t m_NestingLevel
 
size_t m_Magic
 
List< Thread * > m_Threads
 
Spinlock m_Lock
 

Detailed Description

Definition at line 27 of file SignalEvent.h.

Member Function Documentation

virtual size_t SignalEvent::getNumber ( )
inlinevirtual

Returns the event number / ID.

Implements Event.

Definition at line 37 of file SignalEvent.h.

size_t SignalEvent::serialize ( uint8_t *  pBuffer)
virtual
Todo:
There may be a need for serialization in the future...

Implements Event.

Definition at line 32 of file SignalEvent.cc.

Member Data Documentation

size_t SignalEvent::m_SignalNumber
private

This keeps track of the actual signal this SignalEvent is linked to

Definition at line 44 of file SignalEvent.h.


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