Skip to content

Commit 3e2d92f

Browse files
committed
Added post-ISR processing
1 parent 18fa375 commit 3e2d92f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RTXOff/rtxoff_mempool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static osMemoryPoolId_t svcRtxMemoryPoolNew(uint32_t block_count, uint32_t block
239239
(void) osRtxMemoryPoolInit(&mp->mp_info, b_count, b_size, mp_mem);
240240

241241
// Register post ISR processing function
242-
// TODO osRtxInfo.post_process.memory_pool = osRtxMemoryPoolPostProcess;
242+
ThreadDispatcher::instance().post_process.memory_pool = osRtxMemoryPoolPostProcess;
243243

244244
// add event
245245
// EvrRtxMemoryPoolCreated(mp, mp->name);
@@ -528,7 +528,7 @@ isrRtxMemoryPoolFree(osMemoryPoolId_t mp_id, void *block) {
528528
if (status == osOK) {
529529
// Register post ISR processing
530530

531-
// TODO osRtxPostProcess(reinterpret_cast<osRtxObject_t *>(mp));
531+
ThreadDispatcher::instance().queuePostProcess(reinterpret_cast<osRtxObject_t *>(mp));
532532
// add event
533533
// EvrRtxMemoryPoolDeallocated(mp, block);
534534
} else {

0 commit comments

Comments
 (0)