src/Cedar/SW.c
// Enter multiple-starts prevention mode

Enter multiple-starts prevention mode
Enter multiple - starts prevention mode
bool SwEnterSingle(SW* sw)
{
	if (sw == NULL)
	{
		return false;
	}
	if (sw->Single != NULL)
	{
		return true;
	}
	sw->Single = NewSingleInstance(SW_SINGLE_INSTANCE_NAME);
	if (sw->Single == NULL)
	{
		return false;
	}
	return true;
}
bool SwEnterSingle ( SW * sw ) { if ( sw == NULL ) { return false ; } if ( sw -> Single != NULL ) { return true ; } sw -> Single = NewSingleInstance ( SW_SINGLE_INSTANCE_NAME ) ; if ( sw -> Single == NULL ) { return false ; } return true ; }
Enter multiple-starts prevention mode
Enter multiple - starts prevention mode
// Validate arguments
