sema_init(&pHandle->sem, 0);
pHandle->pstrMessageList = NULL;
pHandle->u32ReceiversCount = 0;
- pHandle->bExiting = false;
+ pHandle->exiting = false;
return 0;
}
*/
int wilc_mq_destroy(struct message_queue *pHandle)
{
- pHandle->bExiting = true;
+ pHandle->exiting = true;
/* Release any waiting receiver thread. */
while (pHandle->u32ReceiversCount > 0) {
return -EFAULT;
}
- if (pHandle->bExiting) {
+ if (pHandle->exiting) {
PRINT_ER("pHandle fail\n");
return -EFAULT;
}
return -EINVAL;
}
- if (pHandle->bExiting) {
+ if (pHandle->exiting) {
PRINT_ER("pHandle fail\n");
return -EFAULT;
}