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

lock.h File Reference

Higher abstraction for locking objects. More...

Go to the source code of this file.

Functions

pj_status_t pj_lock_create_simple_mutex (pj_pool_t *pool, const char *name, pj_lock_t **lock)
pj_status_t pj_lock_create_recursive_mutex (pj_pool_t *pool, const char *name, pj_lock_t **lock)
pj_status_t pj_lock_create_null_mutex (pj_pool_t *pool, const char *name, pj_lock_t **lock)
pj_status_t pj_lock_create_semaphore (pj_pool_t *pool, const char *name, unsigned initial, unsigned max, pj_lock_t **lock)
pj_status_t pj_lock_acquire (pj_lock_t *lock)
pj_status_t pj_lock_tryacquire (pj_lock_t *lock)
pj_status_t pj_lock_release (pj_lock_t *lock)
pj_status_t pj_lock_destroy (pj_lock_t *lock)

Detailed Description

Higher abstraction for locking objects.

 


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