Lines Matching defs:i_handle
367 * i_handle the mutex handle
377 int K_LockMutex(K_MUTEX_HANDLE i_handle)
382 if(i_handle->m_bIsRecursive)
384 EnterCriticalSection(&(i_handle->m_stCriticalSection));
388 WaitForSingleObject(i_handle->m_handle, INFINITE);
393 if ( pthread_mutex_lock(i_handle) )
411 * i_handle the mutex handle
421 int K_UnlockMutex(K_MUTEX_HANDLE i_handle)
426 if(i_handle->m_bIsRecursive)
428 LeaveCriticalSection(&(i_handle->m_stCriticalSection));
432 ReleaseMutex(i_handle->m_handle);
437 if ( pthread_mutex_unlock(i_handle) )
456 * i_handle the mutex handle
465 int K_DestroyMutex(K_MUTEX_HANDLE i_handle)
472 if(i_handle->m_bIsRecursive)
474 DeleteCriticalSection(&(i_handle->m_stCriticalSection));
478 CloseHandle(i_handle->m_handle);
480 free(i_handle);
483 pthread_mutex_destroy(i_handle);
484 free(i_handle);
587 * i_handle the companion mutex handle
598 K_MUTEX_HANDLE i_handle)
615 K_UnlockMutex(i_handle);
643 K_LockMutex(i_handle);
648 if ( pthread_cond_wait(i_pCond, i_handle) )