<< Previous | Next >> | |
|
INT8U OSMutexAccept( OS_EVENT * pevent, INT8U * err );
Description
- This function checks the mutual exclusion semaphore to see if a resource is available. Unlike
OSMutexPend()
,OSMutexAccept()
does not suspend the calling task if the resource is not available or the event did not occur. This function cannot be called from an ISR because mutual exclusion semaphores are intended to be used by tasks only.Parameters
- pevent
- Pointer to the event control block.
- err
Return value
1
: Success, the resource is available and the mutual exclusion semaphore is acquired.
0
: Error, either the resource is not available, or you didn't pass a pointer to a mutual exclusion semaphore, or you called this function from an ISR.Library
- OS_MUTEX.C
Dynamic C Functions | << Previous | Next >> | rabbit.com |