MCPcopy Create free account
hub / github.com/FreeRTOS/FreeRTOS-Kernel / xQueueCreateMutex

Function xQueueCreateMutex

queue.c:524–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522#if ( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
523
524 QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType )
525 {
526 QueueHandle_t xNewQueue;
527 const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0;
528
529 xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType );
530 prvInitialiseMutex( ( Queue_t * ) xNewQueue );
531
532 return xNewQueue;
533 }
534
535#endif /* configUSE_MUTEXES */
536/*-----------------------------------------------------------*/

Callers 1

MPU_xQueueCreateMutexFunction · 0.85

Calls 2

xQueueGenericCreateFunction · 0.85
prvInitialiseMutexFunction · 0.85

Tested by

no test coverage detected