Wed Oct 28 11:53:51 2009

Asterisk developer's documentation


ast_threadstorage Struct Reference

data for a thread locally stored variable More...

#include <threadstorage.h>


Data Fields

int(* custom_init )(void *)
pthread_key_t key
void(* key_init )(void)
pthread_once_t once


Detailed Description

data for a thread locally stored variable

Definition at line 56 of file threadstorage.h.


Field Documentation

int(* custom_init)(void *)

Custom initialization function specific to the object

Referenced by ast_threadstorage_get().

pthread_key_t key

The key used to retrieve this thread's data

Definition at line 58 of file threadstorage.h.

Referenced by ast_threadstorage_get().

void(* key_init)(void)

The function that initializes the key

Referenced by ast_threadstorage_get().

pthread_once_t once

Ensure that the key is only initialized by one thread

Definition at line 57 of file threadstorage.h.

Referenced by ast_threadstorage_get().


The documentation for this struct was generated from the following file:

Generated on Wed Oct 28 11:53:51 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.6