Ignore:
Timestamp:
Mar 5, 2013 11:59:54 AM (8 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-apps/src/samples/stateful_proxy.c

    r3553 r4420  
    274274            pjsip_tx_data *cancel; 
    275275 
    276             pj_mutex_lock(uas_data->uac_tsx->mutex); 
     276            pj_grp_lock_acquire(uas_data->uac_tsx->grp_lock); 
    277277 
    278278            pjsip_endpt_create_cancel(global.endpt, uas_data->uac_tsx->last_tx, 
     
    280280            pjsip_endpt_send_request(global.endpt, cancel, -1, NULL, NULL); 
    281281 
    282             pj_mutex_unlock(uas_data->uac_tsx->mutex); 
     282            pj_grp_lock_release(uas_data->uac_tsx->grp_lock); 
    283283        } 
    284284 
    285285        /* Unlock UAS tsx because it is locked in find_tsx() */ 
    286         pj_mutex_unlock(invite_uas->mutex); 
     286        pj_grp_lock_release(invite_uas->grp_lock); 
    287287    } 
    288288 
Note: See TracChangeset for help on using the changeset viewer.