diff options
Diffstat (limited to 'usr/src/man/man3c/pthread_mutex_lock.3c')
-rw-r--r-- | usr/src/man/man3c/pthread_mutex_lock.3c | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/usr/src/man/man3c/pthread_mutex_lock.3c b/usr/src/man/man3c/pthread_mutex_lock.3c index aa1fcb7449..37a8e0fb88 100644 --- a/usr/src/man/man3c/pthread_mutex_lock.3c +++ b/usr/src/man/man3c/pthread_mutex_lock.3c @@ -2,14 +2,14 @@ .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved. .\" Copyright (c) 2001, the Institute of Electrical and Electronics Engineers, Inc. and The Open Group. All Rights Reserved. .\" Copyright 1991, 1992, 1994, The X/Open Company Ltd. -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH pthread_mutex_lock 3C "11 Nov 2008" "SunOS 5.11" "Standard C Library Functions" +.TH PTHREAD_MUTEX_LOCK 3C "Nov 11, 2008" .SH NAME pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock \- lock or unlock a mutex @@ -109,24 +109,20 @@ The \fBpthread_mutex_lock()\fR and \fBpthread_mutex_trylock()\fR functions will fail if: .sp .ne 2 -.mk .na \fB\fBEAGAIN\fR\fR .ad .RS 10n -.rt The mutex could not be acquired because the maximum number of recursive locks for mutex has been exceeded. .RE .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The \fImutex\fR was created with the protocol attribute having the value \fBPTHREAD_PRIO_PROTECT\fR and the calling thread's priority is higher than the mutex's current priority ceiling. @@ -134,12 +130,10 @@ mutex's current priority ceiling. .sp .ne 2 -.mk .na \fB\fBEPERM\fR\fR .ad .RS 10n -.rt The mutex was created with the protocol attribute having the value \fBPTHREAD_PRIO_PROTECT\fR and the calling thread is not in the real-time class (\fBSCHED_RR\fR or \fBSCHED_FIFO\fR scheduling class). @@ -150,12 +144,10 @@ The mutex was created with the protocol attribute having the value The \fBpthread_mutex_trylock()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEBUSY\fR\fR .ad .RS 9n -.rt The \fImutex\fR could not be acquired because it was already locked. .RE @@ -165,12 +157,10 @@ The \fBpthread_mutex_lock()\fR, \fBpthread_mutex_trylock()\fR and \fBpthread_mutex_unlock()\fR functions may fail if: .sp .ne 2 -.mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n -.rt The value specified by \fImutex\fR does not refer to an initialized mutex object. .RE @@ -180,23 +170,19 @@ object. The \fBpthread_mutex_lock()\fR function may fail if: .sp .ne 2 -.mk .na \fB\fBEDEADLK\fR\fR .ad .RS 11n -.rt The current thread already owns the mutex. .RE .sp .ne 2 -.mk .na \fB\fBENOMEM\fR\fR .ad .RS 11n -.rt The limit on the number of simultaneously held mutexes has been exceeded. .RE @@ -205,12 +191,10 @@ The limit on the number of simultaneously held mutexes has been exceeded. The \fBpthread_mutex_unlock()\fR function will fail if: .sp .ne 2 -.mk .na \fB\fBEPERM\fR\fR .ad .RS 9n -.rt The mutex type is PTHREAD_MUTEX_ERRORCHECK or the mutex is a robust mutex, and the current thread does not own the mutex. .RE @@ -224,12 +208,10 @@ attribute having the value \fBPTHREAD_MUTEX_ROBUST\fR (see if: .sp .ne 2 -.mk .na \fB\fBEOWNERDEAD\fR\fR .ad .RS 19n -.rt The last owner of this mutex died while holding the mutex, or the process containing the owner of the mutex unmapped the memory containing the mutex or performed one of the \fBexec\fR(2) functions. This mutex is now owned by the @@ -248,12 +230,10 @@ value \fBENOTRECOVERABLE\fR. If the owner who acquired the lock with .sp .ne 2 -.mk .na \fB\fBENOTRECOVERABLE\fR\fR .ad .RS 19n -.rt The mutex trying to be acquired was protecting the state that has been left irrecoverable by the mutex's last owner. The mutex has not been acquired. This condition can occur when the lock was previously acquired with @@ -269,17 +249,16 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityCommitted +Interface Stability Committed _ -MT-LevelMT-Safe +MT-Level MT-Safe _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .SH SEE ALSO |