src/libYARP_OS/src/YARPAll.cpp
void YARP_safe_printf(char *format,...)
{
	va_list arglist;
	services_sema.Wait();
	va_start(arglist,format);
	vprintf(format,arglist);
	va_end(arglist);
	services_sema.Post();
}
/** 
 * A thread-safe version of printf, using our private semaphore.
 * @param format is the format string as in printf.
 */
A thread-safe version of printf, using our private semaphore.
@param format is the format string as in printf.
A thread - safe version of printf using our private semaphore . @param format is the format string as in printf .
void YARP_safe_printf(char *format,...)
{
	va_list arglist;
	services_sema.Wait();
	va_start(arglist,format);
	vprintf(format,arglist);
	va_end(arglist);
	services_sema.Post();
}
void YARP_safe_printf ( char * format , ... ) { va_list arglist ; services_sema . Wait ( ) ; va_start ( arglist , format ) ; vprintf ( format , arglist ) ; va_end ( arglist ) ; services_sema . Post ( ) ; }
A thread-safe version of printf, using our private semaphore.
A thread - safe version of printf using our private semaphore .