Other Parts Discussed in Thread: SYSBIOS
Hi,
We can have BLOCKING or PREEMPTING qualities for mutex.
My question is,
Since quality is for a gate configuration, can I create mutex instances with different quality or I have to use single quality for all mutex instances in my entire application?
For Example,
I want to create the common functions for MutexCreate, MutexEnter, MutexLeave, MutexDelete functions. From these functions I will call either GateMutex or GateMutexPri functions based on a flag.
If the flag is FIFO,
then I want to create the mutex by using "GateMutex_Create" function and I want to set the quality as "BLOCKING".
If the flag is Priority,
I want to create the mutex by using "GateMutexPri_Create" function and I want to set the quality as "BLOCKING".
If the flag is InversionSafe,
I want to create the mutex by using "GateMutexPri_Create" function and I want to set the quality as "PREEMPTING".
Is this possible or not by doing any parameter configuration during params_init() call?
With regards,
Iyyappan.