xsem_xwait
if ((Status = xsem_xwait(&smq->smq_msgAvail, 1, timeout)) == XSEM_ETIME)
int xsem_xwait(xsem_t *sem, int timeout, timestruc_t *time);