Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
POSIX describes {{PTHREAD_MUTEX_NORMAL}} locks as having the following undefined behavior \[[Open Group 42004|https://www.securecoding.cert.org/confluence/display/seccode/AA.+C+References#AA.CReferences-OpenGroup04]\]:

...

Wiki Markup
The {{DEFAULT}} mutex pthread is also generally mapped to {{PTHREAD_MUTEX_NORMAL}} but is known to vary from platform to platform \[[SOL 102010|http://docs.sun.com/app/docs/doc/816-5137/sync-28983?a=view]\].  Consequently, {{NORMAL}} locks should not be used, and {{ERRORCHECK}} or {{RECURSIVE}} locks should be defined explicitly when mutex locks are used.

...

Bibliography

Wiki Markup
\[[Open Group 42004|https://www.securecoding.cert.org/confluence/display/seccode/AA.+C+References#AA.CReferences-OpenGroup04]\]
\[[SOL 102010|http://docs.sun.com/app/docs/doc/816-5137/sync-28983?a=view]\]

...