Lines Matching full:if
64 * as we don't want to actually store any data - we just want to know if the
86 * if( xSemaphore != NULL )
96 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
100 …if( ( xSemaphore ) != NULL ) …
121 * of memory, in which the semaphore structure is stored. If a binary semaphore
124 * function. (see https://www.FreeRTOS.org/a00111.html). If a binary semaphore
143 * @return Handle to the created semaphore, or NULL if the memory required to
156 * if( xSemaphore != NULL )
166 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
184 * of memory, in which the semaphore structure is stored. If a binary semaphore
187 * function. (see https://www.FreeRTOS.org/a00111.html). If a binary semaphore
203 * @return If the semaphore is created then a handle to the created semaphore is
204 * returned. If pxSemaphoreBuffer is NULL then NULL is returned.
227 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
253 * @return pdTRUE if the semaphore was obtained. pdFALSE
254 * if xBlockTime expired without the semaphore becoming available.
272 * if( xSemaphore != NULL )
274 * // See if we can obtain the semaphore. If the semaphore is not available
275 * // wait 10 ticks to see if it becomes free.
276 * if( xSemaphoreTake( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
321 * if a task successfully 'takes' the same mutex 5 times then the mutex will
330 * real time. A block time of zero can be used to poll the semaphore. If
334 * @return pdTRUE if the semaphore was obtained. pdFALSE if xBlockTime
353 * if( xMutex != NULL )
355 * // See if we can obtain the mutex. If the mutex is not available
356 * // wait 10 ticks to see if it becomes free.
357 * if( xSemaphoreTakeRecursive( xSemaphore, ( TickType_t ) 10 ) == pdTRUE )
393 #if ( configUSE_RECURSIVE_MUTEXES == 1 )
416 * @return pdTRUE if the semaphore was released. pdFALSE if an error occurred.
417 * Semaphores are implemented using queues. An error can occur if there is
430 * if( xSemaphore != NULL )
432 * if( xSemaphoreGive( xSemaphore ) != pdTRUE )
438 * // Obtain the semaphore - don't block if the semaphore is not
440 * if( xSemaphoreTake( xSemaphore, ( TickType_t ) 0 ) )
448 * if( xSemaphoreGive( xSemaphore ) != pdTRUE )
480 * if a task successfully 'takes' the same mutex 5 times then the mutex will
487 * @return pdTRUE if the semaphore was given.
505 * if( xMutex != NULL )
507 * // See if we can obtain the mutex. If the mutex is not available
508 * // wait 10 ticks to see if it becomes free.
509 * if( xSemaphoreTakeRecursive( xMutex, ( TickType_t ) 10 ) == pdTRUE )
546 #if ( configUSE_RECURSIVE_MUTEXES == 1 )
571 * *pxHigherPriorityTaskWoken to pdTRUE if giving the semaphore caused a task
573 * running task. If xSemaphoreGiveFromISR() sets this value to pdTRUE then
576 * @return pdTRUE if the semaphore was successfully given, otherwise errQUEUE_FULL.
593 * if( xSemaphoreTake( xSemaphore, LONG_TIME ) == pdTRUE )
620 * if( ucLocalTickCount >= TICKS_TO_WAIT )
629 * if( xHigherPriorityTaskWoken != pdFALSE )
667 * *pxHigherPriorityTaskWoken to pdTRUE if taking the semaphore caused a task
669 * running task. If xSemaphoreTakeFromISR() sets this value to pdTRUE then
672 * @return pdTRUE if the semaphore was successfully taken, otherwise
687 * of memory, in which the mutex structure is stored. If a mutex is created
690 * https://www.FreeRTOS.org/a00111.html). If a mutex is created using
710 * @return If the mutex was successfully created then a handle to the created
711 * semaphore is returned. If there was not enough heap to allocate the mutex
724 * if( xSemaphore != NULL )
734 #if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
748 * of memory, in which the mutex structure is stored. If a mutex is created
751 * https://www.FreeRTOS.org/a00111.html). If a mutex is created using
775 * @return If the mutex was successfully created then a handle to the created
776 * mutex is returned. If pxMutexBuffer was NULL then NULL is returned.
797 #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_MUTEXES == 1 ) )
812 * of memory, in which the mutex structure is stored. If a recursive mutex is
816 * https://www.FreeRTOS.org/a00111.html). If a recursive mutex is created using
829 * if a task successfully 'takes' the same mutex 5 times then the mutex will
857 * if( xSemaphore != NULL )
867 #if ( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
881 * of memory, in which the mutex structure is stored. If a recursive mutex is
885 * https://www.FreeRTOS.org/a00111.html). If a recursive mutex is created using
898 * if a task successfully 'takes' the same mutex 5 times then the mutex will
917 * @return If the recursive mutex was successfully created then a handle to the
918 * created recursive mutex is returned. If pxMutexBuffer was NULL then NULL is
942 #if ( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configUSE_RECURSIVE_MUTEXES == 1 ) )
960 * block of memory, in which the counting semaphore structure is stored. If a
964 * https://www.FreeRTOS.org/a00111.html). If a counting semaphore is created
998 * @return Handle to the created semaphore. Null if the semaphore could not be
1014 * if( xSemaphore != NULL )
1024 #if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
1042 * block of memory, in which the counting semaphore structure is stored. If a
1046 * https://www.FreeRTOS.org/a00111.html). If a counting semaphore is created
1083 * @return If the counting semaphore was successfully created then a handle to
1084 * the created counting semaphore is returned. If pxSemaphoreBuffer was NULL
1111 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )
1122 * do not delete a mutex type semaphore if the mutex is held by a task.
1137 * If xMutex is indeed a mutex type semaphore, return the current mutex holder.
1138 * If xMutex is not a mutex type semaphore, or the mutex is available (not held
1141 * Note: This is a good way of determining if the calling task is the mutex
1146 #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
1156 * If xMutex is indeed a mutex type semaphore, return the current mutex holder.
1157 * If xMutex is not a mutex type semaphore, or the mutex is available (not held
1161 #if ( ( configUSE_MUTEXES == 1 ) && ( INCLUDE_xSemaphoreGetMutexHolder == 1 ) )
1171 * If the semaphore is a counting semaphore then uxSemaphoreGetCount() returns
1172 * its current count value. If the semaphore is a binary semaphore then
1173 * uxSemaphoreGetCount() returns 1 if the semaphore is available, and 0 if the
1185 * If the semaphore is a counting semaphore then uxSemaphoreGetCountFromISR() returns
1186 * its current count value. If the semaphore is a binary semaphore then
1187 * uxSemaphoreGetCountFromISR() returns 1 if the semaphore is available, and 0 if the
1209 * @return pdTRUE if buffer was retrieved, pdFALSE otherwise.
1211 #if ( configSUPPORT_STATIC_ALLOCATION == 1 )