Submitter: Tom Plum
Submission Date: 2012-03-20
Source:
Reference Document: N/A
Version: 1.0
Date: 2012-03-20
Subject: Typos in 6.27 Threads <threads.h>
Summary
In 7.26.1 paragraph 5The enumeration constants arethe "test and return" is referring towhich is passed tomtx_plainmtx_initto create a mutex object that supports neither timeout nor test and return;
try_lock, try_lock
is not optional, therefore the "test and return" should be removed.
TheThere are not six values listed, "six" should be changed to "these".mtx_initfunction creates a mutex object with properties indicated bytype,
which must have one of the six values:
mtx_plainfor a simple non-recursive mutex,
mtx_timedfor a non-recursive mutex that supports timeout,
mtx_plain | mtx_recursivefor a simple recursive mutex, or
mtx_timed | mtx_recursivefor a recursive mutex that supports timeout.
Suggested Technical Corrigendum
The enumeration constants areChange 7.26.4.2 paragraph 2 towhich is passed tomtx_plainmtx_initto create a mutex object that does not support timeout;
Themtx_initfunction creates a mutex object with properties indicated bytype,
which must have one of the these values: