|
Castor3D
..
|
User event synchronisation class. More...
Inheritance diagram for Castor3D::FrameListener:
Collaboration diagram for Castor3D::FrameListener:Public Member Functions | |
| C3D_API | FrameListener (Castor::String const &p_name) |
| Constructor. More... | |
| C3D_API | ~FrameListener () |
| Destructor. More... | |
| C3D_API void | Flush () |
| Empties the event lists. More... | |
| C3D_API void | PostEvent (FrameEventSPtr p_event) |
| Puts an event in the corresponding array. More... | |
| C3D_API bool | FireEvents (eEVENT_TYPE p_type) |
| Applies all events of a given type, then discards them. More... | |
Protected Member Functions | |
| virtual C3D_API void | DoFlush () |
| Empties the event lists. More... | |
Protected Attributes | |
| std::array< FrameEventPtrArray, eEVENT_TYPE_COUNT > | m_events |
| The events arrays. More... | |
| std::recursive_mutex | m_mutex |
| Mutex to make this class thread safe. More... | |
User event synchronisation class.
| C3D_API Castor3D::FrameListener::FrameListener | ( | Castor::String const & | p_name | ) |
Constructor.
| [in] | p_name | The listener's name. |
| C3D_API Castor3D::FrameListener::~FrameListener | ( | ) |
Destructor.
|
inlineprotectedvirtual |
Empties the event lists.
| C3D_API bool Castor3D::FrameListener::FireEvents | ( | eEVENT_TYPE | p_type | ) |
Applies all events of a given type, then discards them.
| [in] | p_type | The type of events to fire |
| C3D_API void Castor3D::FrameListener::Flush | ( | ) |
Empties the event lists.
Referenced by Castor3D::ElementCleaner< FrameListener, FrameListener >::Cleanup().
Here is the caller graph for this function:| C3D_API void Castor3D::FrameListener::PostEvent | ( | FrameEventSPtr | p_event | ) |
Puts an event in the corresponding array.
| [in] | p_event | The event to put |
|
protected |
The events arrays.
|
protected |
Mutex to make this class thread safe.
1.8.15