C API Reference -- Ns_SetThreadLocalStorage

### Ns_SetThreadLocalStorage

#### Overview

Set thread local storage

#### Syntax

        int Ns_SetThreadLocalStorage(
        Ns_ThreadLocalStorage * tls,
        void *p
        );

#### Description

Set the thread local storage tls to the value `p`.

#### Examples

See the example for Ns_AllocThreadLocalStorage.

Ns_TlsSet is the preferred function for setting thread local storage.

Top of Page
Copyright © 1998-99 America Online, Inc.