Lines Matching refs:key
42 pthread_key_delete (pthread_key_t key)
46 * This function deletes a thread-specific data key. This
47 * does not change the value of the thread specific data key
48 * for any thread and does not run the key's destructor
52 * key
57 * This function deletes a thread-specific data key. This
58 * does not change the value of the thread specific data key
59 * for any thread and does not run the key's destructor
63 * 0 successfully deleted the key,
64 * EINVAL key is invalid,
72 if (key != NULL)
74 if (key->threads != NULL && key->destructor != NULL)
77 ptw32_mcs_lock_acquire (&(key->keyLock), &keyLock);
80 * for this key.
84 * key->threads is valid.
86 while ((assoc = (ThreadKeyAssoc *) key->threads) != NULL)
99 * Since we are starting at the head of the key's threads
100 * chain, this will also point key->threads at the next assoc.
101 * While we hold key->keyLock, no other thread can insert
110 TlsFree (key->key);
111 if (key->destructor != NULL)
114 ptw32_mcs_lock_acquire (&(key->keyLock), &keyLock);
119 memset ((char *) key, 0, sizeof (*key));
121 free (key);