Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ thr_keydelete(3thread) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

thr_getspecific(3thread)

thr_keycreate(3thread)

thr_setspecific(3thread)

thread(3thread)






       thr_keydelete(3thread)                        thr_keydelete(3thread)


       NAME
             thr_keydelete - thread-specific data key

       SYNOPSIS
             cc [options] -Kthread file
             #include <thread.h>
             int thr_keydelete(thread_key_t key)

          Parameters
             key   the key to be deleted

       DESCRIPTION
             thr_keydelete deletes the specified key, which was obtained
             from a previous call to thr_keycreate.

          key Parameter
             key is the key to be deleted.  key must no longer be in use,
             that is, no thread may have a non-NULL value bound to key,
             otherwise thr_keydelete will return EBUSY.

          Return Values
             thr_keydelete returns zero for success and an error number for
             failure, as described below.

          Errors
             If any of the following conditions occur, thr_keydelete
             returns the corresponding value:

             EBUSY    key has thread-specific data associated with it.

             EINVAL   key is invalid.

       USAGE
             A typical use would be for a dynamically linked library to
             create its private key with thr_keycreate as part of its
             initialization, use thr_getspecific and thr_setspecific while
             in use, and then call thr_keydelete before unlinking.

             The application should ensure that other thread-specific data
             functions for key are not called concurrently with
             thr_keydelete.

       REFERENCES
             thr_getspecific(3thread), thr_keycreate(3thread),
             thr_setspecific(3thread), thread(3thread)



                           Copyright 1994 Novell, Inc.               Page 1








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026