| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: pthread_cond_wait.3,v 1.9 2008/05/26 08:43:08 wiz Exp $ | | 1 | .\" $NetBSD: pthread_cond_wait.3,v 1.10 2008/12/31 13:57:54 christos Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2002, 2008 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 2002, 2008 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" Redistribution and use in source and binary forms, with or without | | 5 | .\" Redistribution and use in source and binary forms, with or without |
6 | .\" modification, are permitted provided that the following conditions | | 6 | .\" modification, are permitted provided that the following conditions |
7 | .\" are met: | | 7 | .\" are met: |
8 | .\" 1. Redistributions of source code must retain the above copyright | | 8 | .\" 1. Redistributions of source code must retain the above copyright |
9 | .\" notice, this list of conditions and the following disclaimer. | | 9 | .\" notice, this list of conditions and the following disclaimer. |
10 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 10 | .\" 2. Redistributions in binary form must reproduce the above copyright |
11 | .\" notice, this list of conditions and the following disclaimer in the | | 11 | .\" notice, this list of conditions and the following disclaimer in the |
12 | .\" documentation and/or other materials provided with the distribution. | | 12 | .\" documentation and/or other materials provided with the distribution. |
13 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 13 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
14 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 14 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
| @@ -167,24 +167,35 @@ The system time has reached or exceeded | | | @@ -167,24 +167,35 @@ The system time has reached or exceeded |
167 | .El | | 167 | .El |
168 | .Pp | | 168 | .Pp |
169 | .Fn pthread_cond_timedwait | | 169 | .Fn pthread_cond_timedwait |
170 | may fail if: | | 170 | may fail if: |
171 | .Bl -tag -width Er | | 171 | .Bl -tag -width Er |
172 | .It Bq Er EINVAL | | 172 | .It Bq Er EINVAL |
173 | The value specified by | | 173 | The value specified by |
174 | .Fa cond , | | 174 | .Fa cond , |
175 | .Fa mutex , | | 175 | .Fa mutex , |
176 | or | | 176 | or |
177 | .Fa abstime | | 177 | .Fa abstime |
178 | is invalid. | | 178 | is invalid. |
179 | .El | | 179 | .El |
| | | 180 | .Pp |
| | | 181 | .Fn pthread_cond_wait |
| | | 182 | and |
| | | 183 | .Fn pthread_cond_timedwait |
| | | 184 | may fail if: |
| | | 185 | .Bl -tag -width Er |
| | | 186 | .It Bq Er EPERM |
| | | 187 | The value specified by |
| | | 188 | .Fa mutex |
| | | 189 | is not locked in condition wait. |
| | | 190 | .El |
180 | .Sh SEE ALSO | | 191 | .Sh SEE ALSO |
181 | .Xr pthread_cond_broadcast 3 , | | 192 | .Xr pthread_cond_broadcast 3 , |
182 | .Xr pthread_cond_destroy 3 , | | 193 | .Xr pthread_cond_destroy 3 , |
183 | .Xr pthread_cond_init 3 , | | 194 | .Xr pthread_cond_init 3 , |
184 | .Xr pthread_cond_signal 3 | | 195 | .Xr pthread_cond_signal 3 |
185 | .Sh STANDARDS | | 196 | .Sh STANDARDS |
186 | .Fn pthread_cond_wait | | 197 | .Fn pthread_cond_wait |
187 | and | | 198 | and |
188 | .Fn pthread_cond_timedwait | | 199 | .Fn pthread_cond_timedwait |
189 | conform to | | 200 | conform to |
190 | .St -p1003.1-96 . | | 201 | .St -p1003.1-96 . |