File tree 1 file changed +6
-3
lines changed
src/include/platform/internal
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -278,9 +278,9 @@ void GenericPlatformManagerImpl_FreeRTOS<ImplClass>::EventLoopTaskMain(void * ar
278
278
{
279
279
ChipLogDetail (DeviceLayer, " CHIP event task running" );
280
280
static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->Impl ()->RunEventLoop ();
281
- // TODO: At this point, should we not
282
- // vTaskDelete (static_cast<GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->mEventLoopTask)?
283
- // Or somehow get our caller to do it once this thread is joined?
281
+ vTaskDelete ( NULL );
282
+ vQueueDelete (static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->mChipEventQueue );
283
+ static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)-> mChipEventQueue = NULL ;
284
284
}
285
285
286
286
template <class ImplClass >
@@ -377,6 +377,9 @@ void GenericPlatformManagerImpl_FreeRTOS<ImplClass>::BackgroundEventLoopTaskMain
377
377
{
378
378
ChipLogDetail (DeviceLayer, " CHIP background task running" );
379
379
static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->Impl ()->RunBackgroundEventLoop ();
380
+ vTaskDelete (NULL );
381
+ vQueueDelete (static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->mBackgroundEventQueue );
382
+ static_cast <GenericPlatformManagerImpl_FreeRTOS<ImplClass> *>(arg)->mBackgroundEventQueue = NULL ;
380
383
}
381
384
#endif
382
385
You can’t perform that action at this time.
0 commit comments