Ignore:
Timestamp:
Mar 5, 2013 11:59:54 AM (12 years ago)
Author:
bennylp
Message:

Implementation of Re #1628: Modify SIP transaction to use group lock to avoid deadlock etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/tsx_uas_test.c

    r4208 r4420  
    226226        // Some tests do expect failure! 
    227227        //PJ_LOG(3,(THIS_FILE,"    error: timer unable to send response")); 
    228         pj_mutex_unlock(tsx->mutex); 
     228        pj_grp_lock_release(tsx->grp_lock); 
    229229        pjsip_tx_data_dec_ref(r->tdata); 
    230230        return; 
    231231    } 
    232232 
    233     pj_mutex_unlock(tsx->mutex); 
     233    pj_grp_lock_release(tsx->grp_lock); 
    234234} 
    235235 
     
    314314 
    315315    pjsip_tsx_terminate(tsx, status_code); 
    316     pj_mutex_unlock(tsx->mutex); 
     316    pj_grp_lock_release(tsx->grp_lock); 
    317317} 
    318318 
     
    12601260        if (tsx) { 
    12611261            pjsip_tsx_terminate(tsx, PJSIP_SC_REQUEST_TERMINATED); 
    1262             pj_mutex_unlock(tsx->mutex); 
     1262            pj_grp_lock_release(tsx->grp_lock); 
    12631263            flush_events(1000); 
    12641264        } 
Note: See TracChangeset for help on using the changeset viewer.