Kyoto Cabinet
Public Member Functions
kyotocabinet::TSDKey Class Reference

Key of thread specific data. More...

#include <kcthread.h>

List of all members.

Public Member Functions

 TSDKey ()
 Default constructor.
 TSDKey (void(*dstr)(void *))
 Constructor.
 ~TSDKey ()
 Destructor.
void set (void *ptr)
 Set the value.
void * get () const
 Get the value.

Detailed Description

Key of thread specific data.


Constructor & Destructor Documentation

Default constructor.

kyotocabinet::TSDKey::TSDKey ( void(*)(void *)  dstr) [explicit]

Constructor.

Parameters:
dstrthe destructor for the value.

Destructor.


Member Function Documentation

void kyotocabinet::TSDKey::set ( void *  ptr)

Set the value.

Parameters:
ptran arbitrary pointer.
void* kyotocabinet::TSDKey::get ( ) const

Get the value.

Returns:
the value.