.\" Copyright (c) 1996 John Birrell . .\" 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. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by John Birrell. .\" 4. 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_key_delete. 3, v 1.6. 2.5 2001/12/17 10:08:26 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/pthread_key_delete. 3, v 1.6 2002/08/29 02:13:34 horikawa Exp $ .Dd April 4, 1996 .Dt PTHREAD_KEY_DELETE 3 .Os .Sh ¸íĪ .Nm pthread_key_delete .Nd thread °íÀ¯ÀÇ µ¥ÀÌÅÍ Å°ÀÇ »èÁ¦ .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc_r .Sh ¼­½Ä .In pthread.h .Ft int .Fn pthread_key_delete "pthread_key_t key" .Sh ÇØ¼³ .Fn pthread_key_delete ÇÔ¼ö´Â, ÀÌÀü¿¡ .Fn pthread_key_create ¿¡ ÀÇÇØ µ¹·ÁÁÖ¾îÁø thread °íÀ¯ÀÇ µ¥ÀÌÅÍ Å°¸¦ »èÁ¦ÇÕ´Ï´Ù. .Fa key ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø thread °íÀ¯ÀÇ µ¥ÀÌÅÍÄ¡´Â, .Fn pthread_key_delete ÇÏÁö¸¸ ºÒ·Á °¡´Â ½ÃÁ¡¿¡¼­ NULL ÀÏ ÇÊ¿ä´Â ¾ø½À´Ï´Ù. ¸ðµç ¾îÇø®ÄÉÀÌ¼Ç ±â¾ï areaÀÇ ÇØ¹æ, ¶Ç´Â »èÁ¦µÈ Ű¿¡ °ü·ÃÇß´Ù µ¥ÀÌÅÍ ±¸Á¶³ª ¸ðµç thread¾ÈÀÇ thread °íÀ¯ÀÇ µ¥ÀÌÅÍÀÇ ¸ðµç Ŭ¸° ¾÷ µ¿ÀÛÀÇ ½ÇÇàÀº, ¾îÇø®ÄÉÀ̼ÇÀÇ Ã¥¹«ÀÔ´Ï´Ù. ÀÌ Å¬¸° ¾÷Àº .Fn pthread_key_delete ÇÏÁö¸¸ ºÒ·Á °¡´Â ÀüÈÄ·Î ½ÇÇàµÇ´Â °ÍÀÌ °¡´ÉÇÕ´Ï´Ù. .Fn pthread_key_delete ÀÇ È£ÃâÀÇ ÈÄ¿¡, .Fa key (À»)¸¦ »ç¿ëÇÏ·Á°í ÇÏ´Â ¸ðµç ½ÃµµÀÇ °á°ú´Â, ºÎÁ¤ µ¿ÀÛÀÌ µË´Ï´Ù. .Pp .Fn pthread_key_delete ÇÔ¼ö´Â, ¼Ò¸êÀÚ ÇÔ¼öÁß¿¡¼­ È£ÃâÇÏ´Â °ÍÀÌ °¡´ÉÇÕ´Ï´Ù. ¼Ò¸êÀÚ ÇÔ¼ö´Â, .Fn pthread_key_delete (À¸)·ÎºÎÅÍ´Â ºÒ·Á °¡Áö ¾Ê½À´Ï´Ù. .Fa key ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖÀ»Áöµµ ¸ð¸£´Â ¸ðµç ¼Ò¸êÀÚ ÇÔ¼ö´Â, threadÀÇ Á¾·á½Ã¿¡´Â ÀÌ¹Ì ºÒ·Á °¡Áö ¾Ê½À´Ï´Ù. .Sh ¹Ýȯ°ª ¹®Á¦°¡ ¾ø´Â °æ¿ì´Â, .Fn pthread_key_delete ÇÔ¼ö´Â 0 À» µ¹·ÁÁÝ´Ï´Ù. ¹®Á¦°¡ ÀÖ´Â °æ¿ì´Â, ±× ¿¡·¯¸¦ ³ªÅ¸³»±â À§Çؼ­(¶§¹®¿¡) ¿¡·¯ ¹øÈ£°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. .Sh ¿¡·¯ .Fn pthread_key_delete (Àº)´Â ÀÌÇÏÀÇ °æ¿ì¿¡ ½ÇÆÐÇÕ´Ï´Ù. .Bl -tag -width Er .It Bq Er EINVAL .Fa key ÀÇ °ªÀÌ ¹«È¿ÀÔ´Ï´Ù. .El .Sh °ü·Ã Ç׸ñ .Xr pthread_getspecific 3 , .Xr pthread_key_create 3 , .Xr pthread_setspecific 3 .Sh Ç¥ÁØ .Fn pthread_key_delete ÇÏ .St -p1003.1-96 ¿¡ ÀûÇÕÇϰí ÀÖ½À´Ï´Ù.