qpc/doxygen/snippets/qf_postx.c
Quantum Leaps 0e95d49224 5.1.0
2013-09-23 14:34:35 -04:00

12 lines
327 B
C

extern QActive *AO_Table;
. . .
/* typically inside a state machine action */
TableEvt *pe;
Q_NEW_X(pe, TableEvt, 5U, HUNGRY_SIG); /* dynamic alloc, margin==5 */
if (pe != (TableEvt *)0) {
pe->philNum = me->num;
QACTIVE_POST_X(AO_Table, &pe->super, 3U, me); /* margin==3 */
}
. . .