[PATCH 7/7] Add pthread_condattr_getclock() and pthread_condattr_setclock()
Gedare Bloom
gedare at rtems.org
Wed Jun 15 13:56:01 UTC 2016
On Wed, Jun 15, 2016 at 1:30 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
>
> 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 )'. "
>
Otherwise, this looked fine to me.
> --
> 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.
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list