|
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
Mutex manipulation. Alternatively, application can use higher abstraction for lock objects, which provides uniform API for all kinds of lock mechanisms, including mutex. See Lock Objects for more information.
Define Documentation
| #define pj_mutex_is_locked |
( |
mutex |
|
) |
1 |
Determine whether calling thread is owning the mutex (only available when PJ_DEBUG is set). - Parameters:
-
- Returns:
- Non-zero if yes.
Enumeration Type Documentation
Mutex types:
- PJ_MUTEX_DEFAULT: default mutex type, which is system dependent.
- PJ_MUTEX_SIMPLE: non-recursive mutex.
- PJ_MUTEX_RECURSE: recursive mutex.
Function Documentation
Create mutex of the specified type.
- Parameters:
-
| pool | The pool. |
| name | Name to be associated with the mutex (for debugging). |
| type | The type of the mutex, of type pj_mutex_type_e. |
| mutex | Pointer to hold the returned mutex instance. |
- Returns:
- PJ_SUCCESS on success, or the error code.
Create recursive mutex. This function is a simple wrapper for pj_mutex_create to create recursive mutex.
- Parameters:
-
| pool | The pool. |
| name | Mutex name. |
| mutex | Pointer to hold the returned mutex instance. |
- Returns:
- PJ_SUCCESS on success, or the error code.
Create simple, non-recursive mutex. This function is a simple wrapper for pj_mutex_create to create non-recursive mutex.
- Parameters:
-
| pool | The pool. |
| name | Mutex name. |
| mutex | Pointer to hold the returned mutex instance. |
- Returns:
- PJ_SUCCESS on success, or the error code.
Destroy mutex.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Acquire mutex lock.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Try to acquire mutex lock.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code if the lock couldn't be acquired.
Release mutex lock.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
PJLIB Open Source, high performance, small footprint, and very very portable framework
(C)2001-2008 Benny Prijono
|
|