Searched refs:p_sem (Results 1 – 1 of 1) sorted by relevance
1075 txfr_sem_t *p_sem; in xSemaphoreCreateCounting() local1087 p_sem = txfr_malloc(sizeof(txfr_sem_t)); in xSemaphoreCreateCounting()1088 if(p_sem == NULL) { in xSemaphoreCreateCounting()1092 TX_MEMSET(p_sem, 0, sizeof(*p_sem)); in xSemaphoreCreateCounting()1093 p_sem->max_count = uxMaxCount; in xSemaphoreCreateCounting()1094 p_sem->allocated = 1u; in xSemaphoreCreateCounting()1095 p_sem->is_mutex = 0u; in xSemaphoreCreateCounting()1097 ret = tx_semaphore_create(&p_sem->sem, "", uxInitialCount); in xSemaphoreCreateCounting()1099 txfr_free(p_sem); in xSemaphoreCreateCounting()1103 return p_sem; in xSemaphoreCreateCounting()[all …]