[PATCH 7/7] Add pthread_condattr_getclock() and pthread_condattr_setclock()

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 15 05:30:26 UTC 2016



On 14/06/16 17:05, Joel Sherrill wrote:
> +int pthread_condattr_getclock(
> +  const pthread_condattr_t *__restrict attr,
> +  clockid_t                *__restrict clock
> +)
> +{
> +  if ( !attr ) {
> +    return EINVAL;
> +  }

https://devel.rtems.org/wiki/Developer/Coding/Conventions

"Use NULL for the null pointer, and prefer to use explicit checks 
against NULL, e.g. 'if ( ptr != NULL )' instead of 'if ( !ptr )'. "

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list