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_plain
mtx_init
to 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_init
function creates a mutex object with properties indicated bytype
,
which must have one of the six values:
mtx_plain
for a simple non-recursive mutex,
mtx_timed
for a non-recursive mutex that supports timeout,
mtx_plain | mtx_recursive
for a simple recursive mutex, or
mtx_timed | mtx_recursive
for a recursive mutex that supports timeout.
Suggested Technical Corrigendum
The enumeration constants areChange 7.26.4.2 paragraph 2 towhich is passed tomtx_plain
mtx_init
to create a mutex object that does not support timeout;
Themtx_init
function creates a mutex object with properties indicated bytype
,
which must have one of the these values: