/* This function locks a locking object. 
All other threads that call this function before this thread calls the osi_LockObjUnlock would be suspended */
OsiReturnVal_e _osi_LockObjLock(OsiLockObj_t *pLockObj, OsiTime_t Timeout)
/* This function locks a locking object. 
All other threads that call this function before this thread calls the osi_LockObjUnlock would be suspended */
OsiReturnVal_e _osi_LockObjLock(OsiLockObj_t *pLockObj, OsiTime_t Timeout)
{
    if(pdTRUE == xSemaphoreTake( *pLockObj, ( TickType_t ) Timeout ))
    {
        return OSI_OK;
    }
    else
    {
        return OSI_OPERATION_FAILED;
    }
}