WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

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)
 

Detailed Description

Function Documentation

◆ pj_thread_local_alloc()

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
indexPointer to hold the return value.
Returns
PJ_SUCCESS on success, or the error code.

◆ pj_thread_local_free()

void pj_thread_local_free ( long  index)

Deallocate thread local variable.

Parameters
indexThe variable index.

◆ pj_thread_local_get()

void * pj_thread_local_get ( long  index)

Get the value of thread local variable.

Parameters
indexThe index of the variable.
Returns
The value.

◆ pj_thread_local_set()

pj_status_t pj_thread_local_set ( long  index,
void *  value 
)

Set the value of thread local variable.

Parameters
indexThe index of the variable.
valueThe value.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.