Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Compliant Solution (interface)

Wiki MarkupThe POSIX ^®^ threads library \[POSIX ® threads library [Butenhof 1997|AA. Bibliography#Butenhof 97]\] defines an interface that is both consistent and fits in with established conventions from the rest of the POSIX library. For example, all initialization functions follow the same consistent pattern of the first argument being a pointer to the object to initialize with the subsequent arguments, if any, optionally providing additional attributes for the initialization:

Code Block
bgColor#ccccff
langc
/* initialization of Pthread attribute objects */
int pthread_condattr_init(pthread_condattr_t *);
int pthread_mutexattr_init(pthread_mutexattr_t *);
int pthread_rwlockattr_init(pthread_rwlockattr_t *);
...
/* initialization of Pthread objects using attributes */
int pthread_cond_init(pthread_cond_t * restrict, const pthread_condattr_t * restrict);
int pthread_mutex_init(pthread_mutex_t * restrict, const pthread_mutexattr_t * restrict);
int pthread_rwlock_init(pthread_rwlock_t * restrict, const pthread_rwlockattr_t * restrict);
...

...

MISRA] Rule 20.4

Bibliography

...

\[[VMware 2007, VIX API Version 1.1.1 (for Workstation 6.0.1) Release Notes|http://www.vmware.com/products/beta/ws/VIXAPI-1.1.1- Release - Notes.html]\] 16-August-2007 \[
[Burch 2006|AA. Bibliography#Burch06]\] \[]
[CERT 2006c|AA. Bibliography#CERT 06c]\] \[]
[Miller 1999|AA. Bibliography#Miller 99]\] \[[Seacord 2005a|AA. Bibliography#Seacord 05a]\] Chapter 2, ]
[Seacord 2005a] Chapter 2, "Strings"

...

      13. Application Programming Interfaces (API)      API04-C. Provide a consistent and usable error checking mechanism