mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-13 01:27:48 -04:00
Change the input parameter check with assertion.
This commit is contained in:
parent
64fd9c4435
commit
0df2929dce
1 changed files with 26 additions and 30 deletions
|
@ -625,13 +625,10 @@ EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup,
|
||||||
|
|
||||||
void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
||||||
{
|
{
|
||||||
EventGroup_t * pxEventBits;
|
configASSERT( xEventGroup );
|
||||||
const List_t * pxTasksWaitingForBits;
|
|
||||||
|
|
||||||
if ( NULL != xEventGroup )
|
EventGroup_t * pxEventBits = xEventGroup;
|
||||||
{
|
const List_t * pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
||||||
pxEventBits = xEventGroup;
|
|
||||||
pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
vTaskSuspendAll();
|
||||||
{
|
{
|
||||||
|
@ -667,7 +664,6 @@ void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
||||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
||||||
}
|
}
|
||||||
( void ) xTaskResumeAll();
|
( void ) xTaskResumeAll();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue