Lines Matching defs:timeout
118 * @note If "timeout" value is M4OSA_WAIT_FOREVER, the calling thread
121 * @param timeout:(IN) Time out in milliseconds
129 M4OSA_ERR M4OSA_semaphoreWait(M4OSA_Context context, M4OSA_Int32 timeout)
137 context, timeout);
145 if ( (M4OSA_Int32)M4OSA_WAIT_FOREVER == timeout)
158 while ( ((EBUSY == result) || (EAGAIN == result)) && ( 0 < timeout ) )
161 if (1 <= timeout)
164 timeout -= 1;
168 ts.tv_nsec = timeout * 1000000;
169 timeout = 0;