|
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
Reader/writer mutex is a classic synchronization object where multiple readers can acquire the mutex, but only a single writer can acquire the mutex.
Typedef Documentation
Opaque declaration for reader/writer mutex. Reader/writer mutex is a classic synchronization object where multiple readers can acquire the mutex, but only a single writer can acquire the mutex.
Function Documentation
Create reader/writer mutex.
- Parameters:
-
| pool | Pool to allocate memory for the mutex. |
| name | Name to be assigned to the mutex. |
| mutex | Pointer to receive the newly created mutex. |
- Returns:
- PJ_SUCCESS on success, or the error code.
Destroy reader/writer mutex.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Lock the mutex for reading.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Lock the mutex for writing.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Release read lock.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
Release write lock.
- Parameters:
-
- Returns:
- PJ_SUCCESS on success, or the error code.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|
|