|
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
lock.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __PJ_LOCK_H__
00021 #define __PJ_LOCK_H__
00022
00027 #include <pj/types.h>
00028
00029 PJ_BEGIN_DECL
00030
00055 PJ_DECL(pj_status_t) pj_lock_create_simple_mutex( pj_pool_t *pool,
00056 const char *name,
00057 pj_lock_t **lock );
00058
00068 PJ_DECL(pj_status_t) pj_lock_create_recursive_mutex( pj_pool_t *pool,
00069 const char *name,
00070 pj_lock_t **lock );
00071
00072
00083 PJ_DECL(pj_status_t) pj_lock_create_null_mutex( pj_pool_t *pool,
00084 const char *name,
00085 pj_lock_t **lock );
00086
00087
00088 #if defined(PJ_HAS_SEMAPHORE) && PJ_HAS_SEMAPHORE != 0
00089
00100 PJ_DECL(pj_status_t) pj_lock_create_semaphore( pj_pool_t *pool,
00101 const char *name,
00102 unsigned initial,
00103 unsigned max,
00104 pj_lock_t **lock );
00105
00106 #endif
00107
00115 PJ_DECL(pj_status_t) pj_lock_acquire( pj_lock_t *lock );
00116
00117
00125 PJ_DECL(pj_status_t) pj_lock_tryacquire( pj_lock_t *lock );
00126
00127
00135 PJ_DECL(pj_status_t) pj_lock_release( pj_lock_t *lock );
00136
00137
00145 PJ_DECL(pj_status_t) pj_lock_destroy( pj_lock_t *lock );
00146
00147
00150 PJ_END_DECL
00151
00152
00153 #endif
00154
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|
|