summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-06-28 16:14:17 +0000
committerBenny Prijono <bennylp@teluu.com>2006-06-28 16:14:17 +0000
commitff458d5321955cc8ac704b8f1718df4c6aa7bdf1 (patch)
tree2f68dad860adea72f4819db6fc7aca0b455114db
parente45455dcdf6c90ab84da1f59da70f36d1e86ece4 (diff)
Removed mutex protection in pjsip_endpt_create_pool() since the pool factory is already thread-safe
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@561 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsip/sip_endpoint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pjsip/src/pjsip/sip_endpoint.c b/pjsip/src/pjsip/sip_endpoint.c
index f27fb032..ba8967a9 100644
--- a/pjsip/src/pjsip/sip_endpoint.c
+++ b/pjsip/src/pjsip/sip_endpoint.c
@@ -553,14 +553,18 @@ PJ_DEF(pj_pool_t*) pjsip_endpt_create_pool( pjsip_endpoint *endpt,
pj_pool_t *pool;
/* Lock endpoint mutex. */
+ /* No need to lock mutex. Factory is thread safe.
pj_mutex_lock(endpt->mutex);
+ */
/* Create pool */
pool = pj_pool_create( endpt->pf, pool_name,
initial, increment, &pool_callback);
/* Unlock mutex. */
+ /* No need to lock mutex. Factory is thread safe.
pj_mutex_unlock(endpt->mutex);
+ */
if (!pool) {
PJ_LOG(4, (THIS_FILE, "Unable to create pool %s!", pool_name));