Searched refs:p_sem (Results 1 – 1 of 1) sorted by relevance
1078 txfr_sem_t *p_sem; in xSemaphoreCreateCounting() local1090 p_sem = txfr_malloc(sizeof(txfr_sem_t)); in xSemaphoreCreateCounting()1091 if(p_sem == NULL) { in xSemaphoreCreateCounting()1095 TX_MEMSET(p_sem, 0, sizeof(*p_sem)); in xSemaphoreCreateCounting()1096 p_sem->max_count = uxMaxCount; in xSemaphoreCreateCounting()1097 p_sem->allocated = 1u; in xSemaphoreCreateCounting()1098 p_sem->is_mutex = 0u; in xSemaphoreCreateCounting()1100 ret = tx_semaphore_create(&p_sem->sem, "", uxInitialCount); in xSemaphoreCreateCounting()1102 txfr_free(p_sem); in xSemaphoreCreateCounting()1106 return p_sem; in xSemaphoreCreateCounting()[all …]