Ignore:
Timestamp:
Mar 5, 2013 11:59:54 AM (11 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_bench.c

    r3553 r4420  
    8080    for (i=0; i<working_set; ++i) { 
    8181        if (tsx[i]) { 
     82            pj_timer_heap_t *th; 
     83 
    8284            pjsip_tsx_terminate(tsx[i], 601); 
    8385            tsx[i] = NULL; 
     86 
     87            th = pjsip_endpt_get_timer_heap(endpt); 
     88            pj_timer_heap_poll(th, NULL); 
    8489        } 
    8590    } 
     
    178183    for (i=0; i<working_set; ++i) { 
    179184        if (tsx[i]) { 
     185            pj_timer_heap_t *th; 
     186 
    180187            pjsip_tsx_terminate(tsx[i], 601); 
    181188            tsx[i] = NULL; 
     189 
     190            th = pjsip_endpt_get_timer_heap(endpt); 
     191            pj_timer_heap_poll(th, NULL); 
     192 
    182193        } 
    183194    } 
     
    209220        PJ_LOG(3,(THIS_FILE, "    test %d of %d..", 
    210221                  i+1, REPEAT)); 
     222        PJ_LOG(3,(THIS_FILE, "    number of current tsx: %d", 
     223                  pjsip_tsx_layer_get_tsx_count())); 
    211224        status = uac_tsx_bench(WORKING_SET, &usec[i]); 
    212225        if (status != PJ_SUCCESS) 
     
    247260        PJ_LOG(3,(THIS_FILE, "    test %d of %d..", 
    248261                  i+1, REPEAT)); 
     262        PJ_LOG(3,(THIS_FILE, "    number of current tsx: %d", 
     263                  pjsip_tsx_layer_get_tsx_count())); 
    249264        status = uas_tsx_bench(WORKING_SET, &usec[i]); 
    250265        if (status != PJ_SUCCESS) 
Note: See TracChangeset for help on using the changeset viewer.