You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (#348)
* Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block.
Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings.
* Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file.
Co-authored-by: RichardBarry <richardbarry.c@gmail.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
pxQueue->u.xQueue.pcTail=pxQueue->pcHead+ ( pxQueue->uxLength*pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
282
-
pxQueue->uxMessagesWaiting= ( UBaseType_t ) 0U;
283
-
pxQueue->pcWriteTo=pxQueue->pcHead;
284
-
pxQueue->u.xQueue.pcReadFrom=pxQueue->pcHead+ ( ( pxQueue->uxLength-1U ) *pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
285
-
pxQueue->cRxLock=queueUNLOCKED;
286
-
pxQueue->cTxLock=queueUNLOCKED;
287
-
288
-
if( xNewQueue==pdFALSE )
289
280
{
290
-
/* If there are tasks blocked waiting to read from the queue, then
291
-
* the tasks will remain blocked as after this function exits the queue
292
-
* will still be empty. If there are tasks blocked waiting to write to
293
-
* the queue, then one should be unblocked as after this function exits
pxQueue->u.xQueue.pcTail=pxQueue->pcHead+ ( pxQueue->uxLength*pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
282
+
pxQueue->uxMessagesWaiting= ( UBaseType_t ) 0U;
283
+
pxQueue->pcWriteTo=pxQueue->pcHead;
284
+
pxQueue->u.xQueue.pcReadFrom=pxQueue->pcHead+ ( ( pxQueue->uxLength-1U ) *pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
0 commit comments