|
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
Detailed Description
This module provides API to manipulate atomic variables.
For some example codes, please see:
Function Documentation
Add a value to an atomic type.
- Parameters:
-
| atomic_var | The atomic variable. |
| value | Value to be added. |
Add a value to an atomic type and get the result.
- Parameters:
-
| atomic_var | The atomic variable. |
| value | Value to be added. |
- Returns:
- The result after the addition.
Create atomic variable.
- Parameters:
-
| pool | The pool. |
| initial | The initial value of the atomic variable. |
| atomic | Pointer to hold the atomic variable upon return. |
- Returns:
- PJ_SUCCESS on success, or the error code.
Decrement the value of an atomic type.
- Parameters:
-
| atomic_var | the atomic variable. |
Decrement the value of an atomic type and get the result.
- Parameters:
-
| atomic_var | the atomic variable. |
- Returns:
- The decremented value.
Destroy atomic variable.
- Parameters:
-
| atomic_var | the atomic variable. |
- Returns:
- PJ_SUCCESS if success.
Get the value of an atomic type.
- Parameters:
-
| atomic_var | the atomic variable. |
- Returns:
- the value of the atomic variable.
Increment the value of an atomic type.
- Parameters:
-
| atomic_var | the atomic variable. |
Increment the value of an atomic type and get the result.
- Parameters:
-
| atomic_var | the atomic variable. |
- Returns:
- The incremented value.
Set the value of an atomic type, and return the previous value.
- Parameters:
-
| atomic_var | the atomic variable. |
| value | value to be set to the variable. |
PJLIB Open Source, high performance, small footprint, and very very portable framework
(C)2001-2008 Benny Prijono
|
|