QP/C
Functions
qa_lifo.c File Reference

QActive_postLIFO() definition. More...

#include "qf_pkg.h"
#include "qassert.h"

Go to the source code of this file.

Functions

void QActive_postLIFO (QActive *me, QEvent const *e)
 Posts an event directly to the event queue of the active object me using the Last-In-First-Out (LIFO) policy.

Detailed Description

QActive_postLIFO() definition.

Note:
this source file is only included in the QF library when the native QF active object queue is used (instead of a message queue of an RTOS).

Definition in file qa_lifo.c.


Function Documentation

void QActive_postLIFO ( QActive me,
QEvent const *  e 
)

Posts an event directly to the event queue of the active object me using the Last-In-First-Out (LIFO) policy.

Note:
The LIFO policy should be used only for self-posting and with caution because it alters order of events in the queue.
See also:
QActive_postFIFO()

Definition at line 43 of file qa_lifo.c.

References Q_ASSERT, QACTIVE_EQUEUE_SIGNAL_, QF_EVT_POOL_ID_, QF_EVT_REF_CTR_, QF_EVT_REF_CTR_INC_, QF_PTR_AT_, QS_aoObj_, QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_EQC_, QS_OBJ_, QS_QF_ACTIVE_POST_LIFO, QS_TIME_, and QS_U8_.

Referenced by QActive_recall().