Content-type: text/html Man page of tis_key_delete

tis_key_delete

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

tis_key_delete - Deletes the specified thread-specific data key.  

LIBRARY

Standard C Library (libc.so, libc.a)  

SYNOPSIS

#include <tis.h>

int tis_key_delete(
                       pthread_key_t   key);  

STANDARDS

None  

PARAMETERS

Thread-specific data key to be deleted.  

DESCRIPTION

This routine deletes a thread-specific data key key previously returned by a call to the tis_key_create(3) routine. The data values associated with key need not be NULL at the time this routine is called. The application must free any application storage or perform any cleanup actions for data structures related to the the deleted key or associated data. This cleanup can be done before or after this routine is called.

Attempting to use the thread-specific data key key after calling this routine results in unpredictable behavior.

No destructor functions are invoked by this routine. Any destructor functions that may have been associated with key will no longer be called upon thread exit.

This routine can be called from within destructor functions.

 

RETURN VALUES

If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows: Successful completion. The value for key is invalid.  

ERRORS

None  

RELATED INFORMATION

Functions: tis_getspecific(3), tis_key_create(3), tis_setspecific(3)

Manuals: Guide to DECthreads and Programmer's Guide

delim off


 

Index

NAME
LIBRARY
SYNOPSIS
STANDARDS
PARAMETERS
DESCRIPTION
RETURN VALUES
ERRORS
RELATED INFORMATION

This document was created by man2html, using the manual pages.
Time: 02:41:55 GMT, October 02, 2010