.\" Copyright (c) 1997 Brian Cully .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. Neither the name of the author nor the names of any co-contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" %FreeBSD: src/lib/libc_r/man/pthread_cond_timedwait. 3, v 1.8. 2.7 2001/12/17 10:08:26 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/pthread_cond_timedwait. 3, v 1.5 2002/05/18 07:12:56 horikawa Exp $ .Dd July 28, 1998 .Dt PTHREAD_COND_TIMEDWAIT 3 .Os .Sh ¸íĪ .Nm pthread_cond_timedwait .Nd ÁöÁ¤ÇÑ ½Ã°£ÀÇ »çÀÌÀÇ Á¶°Ç º¯¼öÀÇ ´ë±â .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc_r .Sh ¼­½Ä .In pthread.h .Ft int .Fn pthread_cond_timedwait "pthread_cond_t *cond" "pthread_mutex_t *mutex" "const struct timespec *abstime" .Sh ÇØ¼³ .Fn pthread_cond_timedwait ÇÔ¼ö´Â, .Fa cond ±×¸®°í ÁöÁ¤µÈ Á¶°Ç º¯¼ö·Î ±â´Ù¸®°í ÀÖ´Â ÇöÀçÀÇ thread¸¦ ºÒ°¡ºÐ¿¡ ºí·Ï ÇØ, .Fa mutex ±×¸®°í ÁöÁ¤µÈ mutex ÀÇ ºí·ÏÀ» ÇØÁ¦ÇÕ´Ï´Ù. ±â´Ù¸®°í ÀÖ´Â thread´Â, ´Ù¸¥ thread°¡ .Xr pthread_cond_signal 3 ¶Ç´Â .Xr pthread_cond_broadcast 3 (À»)¸¦ °°Àº Á¶°Ç º¯¼ö·Î È£ÃâÇÑ ÈÄ, ¶Ç´Â ½Ã½ºÅÛ ½Ã°£ÀÌ .Fa abstime (À¸)·Î ÁöÁ¤µÈ ½Ã°£¿¡ À̸£·¶À» °æ¿ì, ¿¡°Ô¸¸ ºí·ÏÀÌ ÇØÁ¦µÇ¾î ÇöÀçÀÇ thread´Â .Fa mutex ÀÇ ¶ôÀ» ÀçÃëµæÇÕ´Ï´Ù. .Sh ¹Ýȯ°ª ¹®Á¦°¡ ¾ø´Â °æ¿ì´Â, .Fn pthread_cond_timedwait ÇÔ¼ö´Â 0 À» µ¹·ÁÁÝ´Ï´Ù. ¹®Á¦°¡ ÀÖ´Â °æ¿ì´Â, ±× ¿¡·¯¸¦ ³ªÅ¸³»±â À§Çؼ­(¶§¹®¿¡) ¿¡·¯ ¹øÈ£°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. .Sh ¿¡·¯ .Fn pthread_cond_timedwait (Àº)´Â ÀÌÇÏÀÇ °æ¿ì¿¡ ½ÇÆÐÇÕ´Ï´Ù. .Bl -tag -width Er .It Bq Er EINVAL .Fa cond , .Fa mutex ¶Ç´Â .Fa abstime ¿¡ ÀÇÇØ ÁöÁ¤µÈ °ªÀÌ ¹«È¿ÀÔ´Ï´Ù. .It Bq Er ETIMEDOUT ½Ã½ºÅÛ ½Ã°£ÀÌ, .Fa abstime (À¸)·Î ÁöÁ¤ÇÑ ½Ã°£¿¡ À̸£·¶½À´Ï´Ù. ¶Ç´Â, ÃʰúÇß½À´Ï´Ù. .El .Pp .Sh °ü·Ã Ç׸ñ .Xr pthread_cond_broadcast 3 , .Xr pthread_cond_destroy 3 , .Xr pthread_cond_init 3 , .Xr pthread_cond_signal 3 , .Xr pthread_cond_wait 3 .Sh Ç¥ÁØ .Fn pthread_cond_timedwait ÇÏ .St -p1003.1-96 ¿¡ ÀûÇÕÇϰí ÀÖ½À´Ï´Ù.