cls.c File Reference

#include "nsd.h"

Functions

void Ns_ClsAlloc (Ns_Cls *clsPtr, Ns_Callback *cleanup)
void Ns_ClsSet (Ns_Cls *clsPtr, Ns_Conn *conn, void *value)
void * Ns_ClsGet (Ns_Cls *clsPtr, Ns_Conn *conn)
void NsClsCleanup (Conn *connPtr)

Function Documentation

void Ns_ClsAlloc ( Ns_Cls *  clsPtr,
Ns_Callback *  cleanup 
)

----------------------------------------------------------------------

Ns_ClsAlloc --

Allocate the next cls id.

Results: None.

Side effects: Id is set in given clsPtr.

----------------------------------------------------------------------

void* Ns_ClsGet ( Ns_Cls *  clsPtr,
Ns_Conn *  conn 
)

----------------------------------------------------------------------

Ns_ClsGet --

Get this thread's value in a cls slot.

Results: Pointer in slot.

Side effects: None.

----------------------------------------------------------------------

void Ns_ClsSet ( Ns_Cls *  clsPtr,
Ns_Conn *  conn,
void *  value 
)

----------------------------------------------------------------------

Ns_ClsSet --

Set the value for a threads cls slot.

Results: None.

Side effects: None.

----------------------------------------------------------------------

void NsClsCleanup ( Conn connPtr  ) 

----------------------------------------------------------------------

NsClsCleanup --

Cleanup connection local storage in a manner similar to thread local storage.

Results: None.

Side effects: Depends on callbacks.

----------------------------------------------------------------------


Generated on Tue Sep 4 19:58:55 2007 by  doxygen 1.5.1