54#if (QF_MAX_EPOOL > 0U)
56Q_DEFINE_THIS_MODULE(
"qf_dyn")
60#if (QP_VERSION < 730U) || (QP_VERSION != ((QP_RELEASE^4294967295U) % 0x3E8U))
61#error qpc version 7.3.0 or higher required
71 uint_fast32_t
const poolSize,
72 uint_fast16_t
const evtSize)
97 uint8_t obj_name[9] =
"EvtPool?";
98 obj_name[7] = (uint8_t)((uint8_t)
'0' + poolNum + 1U);
99 QS_obj_dict_pre_(&
QF_priv_.
ePool_[poolNum], (
char const *)obj_name);
106uint_fast16_t QF_poolGetMaxBlockSize(
void) {
110 uint_fast16_t
const max_size =
120uint_fast16_t QF_getPoolMin(uint_fast8_t
const poolNum) {
128 uint_fast16_t
const min = (uint_fast16_t)
QF_priv_.
ePool_[poolNum - 1U].nMin;
139 uint_fast16_t
const evtSize,
140 uint_fast16_t
const margin,
148 uint_fast8_t poolNum = 0U;
175 if (e != (
QEvt *)0) {
185 QS_EVS_PRE_(evtSize);
203 QS_EVS_PRE_(evtSize);
218void QF_gc(
QEvt const *
const e) {
223 uint_fast8_t
const poolNum = QEvt_getPoolNum_(e);
234 QS_2U8_PRE_(poolNum, e->
refCtr_);
248 QS_2U8_PRE_(poolNum, e->
refCtr_);
276 QEvt const *
const e,
277 void const *
const evtRef)
288 uint_fast8_t
const poolNum = QEvt_getPoolNum_(e);
291 && (evtRef == (
void *)0));
300 QS_2U8_PRE_(poolNum, e->
refCtr_);
311void QF_deleteRef_(
void const *
const evtRef) {
312 QEvt const *
const e = evtRef;
319 uint_fast8_t
const poolNum = QEvt_getPoolNum_(e);
327 QS_2U8_PRE_(poolNum, e->
refCtr_);
333 #if (QF_MAX_EPOOL > 0U)
#define QF_EPOOL_EVENT_SIZE_(p_)
#define QF_EPOOL_PUT_(p_, e_, qsId_)
#define QF_EPOOL_INIT_(p_, poolSto_, poolSize_, evtSize_)
#define QF_EPOOL_GET_(p_, e_, m_, qsId_)
#define Q_UNUSED_PAR(par_)
Internal (package scope) QP/C interface.
@ QS_QF_DELETE_REF
an event reference is about to be deleted
@ QS_QF_GC_ATTEMPT
garbage collection attempt
@ QS_QF_GC
garbage collection
@ QS_EP_ID
offset for event-pool IDs
@ QS_QF_NEW_ATTEMPT
an attempt to allocate an event failed
@ QS_QF_NEW_REF
new event reference was created
@ QS_QF_NEW
new event was created
QS/C package-scope interface.
QP Functional Safety (FuSa) Subsystem.
#define Q_ASSERT_INCRIT(id_, expr_)
#define Q_REQUIRE_INCRIT(id_, expr_)
QF_EPOOL_TYPE_ ePool_[QF_MAX_EPOOL]