mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-14 06:43:19 +08:00
12 lines
327 B
C
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 */
|
|
}
|
|
. . .
|