pjsip logo pjsip.org
Open source SIP stack and media stack for presence, im/instant messaging, and multimedia communication

HOME

SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port

FAQ

Documentation

Licensing

Download

Development (Trac)

Projects using pjsip

Mailing List

Open Source Links


About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono
<bennylp@pjsip.org>


 

Home --> Documentations --> PJLIB Reference

Thread Local Storage.
[Operating System Dependent Functionality.]


Functions

pj_status_t pj_thread_local_alloc (long *index)
void pj_thread_local_free (long index)
pj_status_t pj_thread_local_set (long index, void *value)
void * pj_thread_local_get (long index)


Function Documentation

pj_status_t pj_thread_local_alloc ( long *  index  ) 

Allocate thread local storage index. The initial value of the variable at the index is zero.

Parameters:
index Pointer to hold the return value.
Returns:
PJ_SUCCESS on success, or the error code.

void pj_thread_local_free ( long  index  ) 

Deallocate thread local variable.

Parameters:
index The variable index.

void* pj_thread_local_get ( long  index  ) 

Get the value of thread local variable.

Parameters:
index The index of the variable.
Returns:
The value.

pj_status_t pj_thread_local_set ( long  index,
void *  value 
)

Set the value of thread local variable.

Parameters:
index The index of the variable.
value The value.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
(C)2001-2008 Benny Prijono