ThreadKey Class Reference

[APE Index] [APE Hierarchy] [Headers]


container for thread specific data storage. More...

#include <thread.h>

Public Members


Detailed Description

This class allows the creation of a thread context unique "pointer" that can be set and retrieved and can be used to create thread specific data areas for implementing "thread safe" library routines.


ThreadKey() [public]

Create a unique thread specific container.

~ThreadKey() [public]

Destroy a thread specific container and any contents reserved.

void* getKey(void) [public]

Get the value of the pointer for the thread specific data container. A unique pointer can be set for each execution context.

Returns:
a unique void * for each execution context.

void setKey(void *) [public]

Set the value of the pointer for the current thread specific execution context. This can be used to store thread context specific data.

Parameters:
ptr to thread context specific data.

  • Author: David Sugar <dyfet@ostel.com>
  • Documentation generated by dyfet@home.sys on Thu Dec 16 09:54:26 EST 1999
Kdoc