You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS_API_Init initializes several OS primitives but is made with a pattern of exiting as soon as any initialization fails without cleaning up previous successful initializations. For example:
OS_API_Init initializes several OS primitives but is made with a pattern of exiting as soon as any initialization fails without cleaning up previous successful initializations. For example:
OS_task_table_sem = semMCreate(SEM_Q_PRIORITY | SEM_INVERSION_SAFE );
if ( OS_task_table_sem == NULL )
{
return(OS_ERROR);
}
OS_queue_table_sem = semMCreate(SEM_Q_PRIORITY | SEM_INVERSION_SAFE );
if ( OS_queue_table_sem == NULL )
{
return(OS_ERROR);
}
If OS_task_table_sem successfully initializes, but OS_queue_table_sem does not, then OS_task_table_sem will become a leaked resource.
The text was updated successfully, but these errors were encountered: