Lines Matching +full:draft +full:- +full:release
9 * http://www.apache.org/licenses/LICENSE-2.0
41 /* 07 03 2006 Ittiam Draft */
83 /* Returns : On SUCCESS - Semaphore handle */
84 /* On FAILURE - NULL */
91 /* 07 03 2006 Ittiam Draft */
100 if(0 == handle || 0 == handle->alloc || 0 == handle->free) in osal_sem_create()
104 mmr_handle = handle->mmr_handle; in osal_sem_create()
112 sem_handle_t *sem_handle = handle->alloc(mmr_handle, sizeof(sem_handle_t)); in osal_sem_create()
118 sem_handle->mmr_handle = mmr_handle; in osal_sem_create()
119 sem_handle->hdl = handle; in osal_sem_create()
122 if(-1 == sem_init( in osal_sem_create()
123 &(sem_handle->sem_handle), /* Semaphore handle */ in osal_sem_create()
125 attr->value)) /* Initialize value. */ in osal_sem_create()
127 handle->free(sem_handle->mmr_handle, sem_handle); in osal_sem_create()
149 /* Returns : On SUCCESS - 0 */
150 /* On FAILURE - -1 */
157 /* 07 03 2006 Ittiam Draft */
170 if(0 == handle->hdl || 0 == handle->hdl->free) in osal_sem_destroy()
174 if(0 == sem_destroy(&(handle->sem_handle))) in osal_sem_destroy()
176 handle->hdl->free(handle->mmr_handle, handle); in osal_sem_destroy()
201 /* Returns : On SUCCESS - 0 */
202 /* On FAILURE - -1 */
209 /* 07 03 2006 Ittiam Draft */
222 return sem_wait(&(handle->sem_handle)); in osal_sem_wait()
236 /* Processing : Calls OS specific API's to release the lock on Semaphore */
238 /* Outputs : Status of semaphore lock release */
240 /* Returns : On SUCCESS - 0 */
241 /* On FAILURE - -1 */
248 /* 07 03 2006 Ittiam Draft */
261 return sem_post(&(handle->sem_handle)); in osal_sem_post()
280 /* Returns : On SUCCESS - 0 */
281 /* On FAILURE - -1 */
288 /* 30 03 2006 Ittiam Draft */
300 if(-1 == sem_getvalue(&(handle->sem_handle), count)) in osal_sem_count()
324 /* Returns : On SUCCESS - 0 */
325 /* On FAILURE - -1 */
332 /* 30 03 2006 Ittiam Draft */