mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 17:17:44 -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 )
|
||||
{
|
||||
EventGroup_t * pxEventBits;
|
||||
const List_t * pxTasksWaitingForBits;
|
||||
configASSERT( xEventGroup );
|
||||
|
||||
if ( NULL != xEventGroup )
|
||||
{
|
||||
pxEventBits = xEventGroup;
|
||||
pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
||||
EventGroup_t * pxEventBits = xEventGroup;
|
||||
const List_t * pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
||||
|
||||
vTaskSuspendAll();
|
||||
{
|
||||
|
@ -668,7 +665,6 @@ void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
|||
}
|
||||
( void ) xTaskResumeAll();
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* For internal use only - execute a 'set bits' command that was pended from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue