Systhread_Getdata; Systhread_Newkey - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

NSAPI Functions (in Alphabetical Order)
Returns
A
pointer to the current thread
SYS_THREAD
Parameters
none.
See also
systhread_getdata, systhread_newkey, systhread_setdata,
systhread_sleep, systhread_start, systhread_timerset

systhread_getdata

The
function gets data that is associated with a specified key
systhread_getdata
in the current thread.
Syntax
void *systhread_getdata(int key);
Returns
A pointer to the data that was earlier used with the
function
systhread_setkey
from the current thread, using the same value of
if the call succeeds. Returns
key
NULL if the call did not succeed, for example if the
function
systhread_setkey
was never called with the specified key during this session
Parameters
is the value associated with the stored data by a
int key
systhread_setdata
function. Keys are assigned by the
function.

systhread_newkey

See also
systhread_current, systhread_newkey, systhread_setdata,
systhread_sleep, systhread_start, systhread_timerset
systhread_newkey
The
function allocates a new integer key (identifier) for
systhread_newkey
thread-private data. Use this key to identify a variable that you want to localize to
the current thread; then use the
function to associate a value
systhread_setdata
with the key.
Syntax
int systhread_newkey(void);
Returns
An integer key.
Chapter 5
NSAPI Function Reference
187

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents