diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-06-28 16:14:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-06-28 16:14:17 +0000 |
commit | ff458d5321955cc8ac704b8f1718df4c6aa7bdf1 (patch) | |
tree | 2f68dad860adea72f4819db6fc7aca0b455114db /pjsip | |
parent | e45455dcdf6c90ab84da1f59da70f36d1e86ece4 (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
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsip/sip_endpoint.c | 4 |
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)); |