Email List: Xaustin-review-lX
[All Lists]

Defect in XSH pthread_mutex_lock

To: austin-review-l@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_mutex_lock
From: Geoff Clare <gwc@xxxxxxxxxxxxx>
Date: Fri, 9 Jan 2009 15:53:20 +0000
@ page 1639 line 52741 section pthread_mutex_lock objection [gwc pmtl return]

Problem:

Edition of Specification (Year): 2008

Defect code :  1. Error

The RETURN VALUE section on the pthread_mutex_lock() page states:

    "The pthread_mutex_trylock() function shall return zero if a lock
    on the mutex object referenced by mutex is acquired. Otherwise, an
    error number is returned to indicate the error."

This conflicts with the description of the EOWNERDEAD error for
pthread_mutex_trylock() which says "The mutex lock shall be acquired
by the calling thread".

Action:

On line 52739 (1st line of RETURN VALUE) change

    "pthread_mutex_lock() and pthread_mutex_unlock()"

to

    "pthread_mutex_lock(), pthread_mutex_trylock() and pthread_mutex_unlock()"

Delete lines 52741-52742 (2nd para of RETURN VALUE).

<Prev in Thread] Current Thread [Next in Thread>